make Ox.getTime accept utc parameter
This commit is contained in:
parent
439a0a58af
commit
9a559809b0
1 changed files with 3 additions and 4 deletions
|
@ -179,10 +179,9 @@ Ox.getISOYear = function(date, utc) {
|
||||||
//@ Ox.getSeconds <f> Get the seconds of a date
|
//@ Ox.getSeconds <f> Get the seconds of a date
|
||||||
// see Ox.setSeconds for source code
|
// see Ox.setSeconds for source code
|
||||||
|
|
||||||
//@ Ox.getTime <f> Alias for <code>+new Date()</code> (deprecated)
|
//@ Ox.getTime <f> Alias for <code>+new Date()</code>
|
||||||
Ox.getTime = function() {
|
Ox.getTime = function(utc) {
|
||||||
// fixme: needed?
|
return +new Date() - (utc ? Ox.getTimezoneOffset() : 0);
|
||||||
return +new Date();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue