make Ox.getTime accept utc parameter

This commit is contained in:
rolux 2012-02-25 13:04:18 +05:30
parent 439a0a58af
commit 9a559809b0

View file

@ -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();
}; };
/*@ /*@