Utility class to assist with ISO-8601 timestamp conversions.
More...
Utility class to assist with ISO-8601 timestamp conversions.
◆ Iso8601Timestamp()
fm.liveswitch.Iso8601Timestamp.Iso8601Timestamp |
( |
| ) |
|
◆ dateTimeToIso8601()
static String fm.liveswitch.Iso8601Timestamp.dateTimeToIso8601 |
( |
java.util.Date |
dateTime | ) |
|
|
static |
Converts a date to a ISO-8601 timestamp.
- Parameters
-
dateTime | The date to convert. |
- Returns
- The equivalent ISO-8601 timestamp.
◆ getUtcNow()
static String fm.liveswitch.Iso8601Timestamp.getUtcNow |
( |
| ) |
|
|
static |
Gets the current UTC time in ISO-8601 format.
◆ iso8601ToDateTime()
static java.util.Date fm.liveswitch.Iso8601Timestamp.iso8601ToDateTime |
( |
String |
iso8601 | ) |
|
|
static |
Converts a ISO-8601 timestamp to a date.
- Parameters
-
iso8601 | The ISO-8601 timestamp to convert. |
- Returns
- The equivalent date.