DateUtils Class

Provides static methods

Constructors

There are no public constructors.

Static Methods

getCurrentTime( ) returns long
Returns current time in nanoseconds
getMilliseconds( long nanoseconds ) returns long
Converts a timestamp in nanoseconds to milliseconds
getUTC( ) returns TimeZone
getDate( long milliseconds ) returns String
Used to convert a UNIX timestamp in milliseconds to a string in GMT (e.g. "Mon, 20 Feb 2012 13:04:28 GMT"). Note that this method does not rely on the java.text.SimpleDateFormat for performance reasons.
millisecondsMilliseconds since January 1, 1970, 00:00:00 UTC