1
0
Fork 0
forked from 0x2620/oxjs

minor changes, mostly documentation

This commit is contained in:
rlx 2012-03-30 01:41:47 +00:00
commit 044da383db
3 changed files with 9 additions and 9 deletions

View file

@ -161,14 +161,14 @@ Ox.formatDate = function(date, str, utc) {
['S', function(d) {return Ox.pad(Ox.getSeconds(d, utc), 2);}],
['s', function(d) {
return Math.floor(d.getTime() / 1000)
- (utc ? Ox.getTimezoneOffset() / 1000 : 0);
- (utc ? Ox.getTimezoneOffset() / 1000 : 0);
}],
['U', function(d) {return Ox.pad(Ox.getWeek(d, utc), 2);}],
['u', function(d) {return Ox.getISODay(d, utc);}],
['V', function(d) {return Ox.pad(Ox.getISOWeek(d, utc), 2);}],
['W', function(d) {
return Ox.pad(Math.floor((Ox.getDayOfTheYear(d, utc) +
(Ox.getFirstDayOfTheYear(d, utc) || 7) - 2) / 7), 2);
return Ox.pad(Math.floor((Ox.getDayOfTheYear(d, utc)
+ (Ox.getFirstDayOfTheYear(d, utc) || 7) - 2) / 7), 2);
}],
['w', function(d) {return Ox.getDay(d, utc);}],
['X', function(d) {