Search:
Class o2.Date
static
class
o2.Date
Function Summary
Prints a human-readable time string, by looking at the difference between two timestamps.
Usage example:
var timeString = o2.Date.getPrettyDate((new Date()).getTime()); // timeString is 'just now'
static
now()
An alias to o2.Date.getTime.
Function Details
function getPrettyDate
static
getPrettyDate(Integer
time, Integer
currTime)
Prints a human-readable time string, by looking at the difference between two timestamps.
Usage example:
var timeString = o2.Date.getPrettyDate((new Date()).getTime()); // timeString is 'just now'
Parameters:
time
- the offset time in milliseconds.
currTime
- (Optional, default to NOW) the base time
in milliseconds. function getTime
static
getTime()
See also:
function now
static
now()
An alias to o2.Date.getTime.
See also:
A date/time utilities class.