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