java.lang.Object | |
↳ | com.urbanairship.util.DateUtils |
Date utilities.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String |
createIso8601TimeStamp(long milliseconds)
Creates an ISO 8601 formatted time stamp.
| ||||||||||
static long |
parseIso8601(String timeStamp, long defaultValue)
Parses an ISO 8601 timestamp.
| ||||||||||
static long |
parseIso8601(String timeStamp)
Parses an ISO 8601 timestamp.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an ISO 8601 formatted time stamp.
milliseconds | The time in milliseconds since Jan. 1, 1970, midnight GMT. |
---|
Parses an ISO 8601 timestamp.
timeStamp | The ISO time stamp string. |
---|---|
defaultValue | The default value |
Parses an ISO 8601 timestamp.
timeStamp | The ISO time stamp string. |
---|
ParseException | if the timestamp was unable to be parsed. |
---|