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
|
||||
// see Ox.setSeconds for source code
|
||||
|
||||
//@ Ox.getTime <f> Alias for <code>+new Date()</code> (deprecated)
|
||||
Ox.getTime = function() {
|
||||
// fixme: needed?
|
||||
return +new Date();
|
||||
//@ Ox.getTime <f> Alias for <code>+new Date()</code>
|
||||
Ox.getTime = function(utc) {
|
||||
return +new Date() - (utc ? Ox.getTimezoneOffset() : 0);
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue