/ fm / liveswitch / Iso8601Timestamp
Class: Iso8601Timestamp
fm.liveswitch.Iso8601Timestamp
Utility class to assist with ISO-8601 timestamp conversions.
Table of contents
Constructors
Methods
Constructors
constructor
+ new Iso8601Timestamp(): Iso8601Timestamp
Returns: Iso8601Timestamp
Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:11
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:9
dateTimeToIso8601
▸ Static
dateTimeToIso8601(dateTime
: DateTime): string
Converts a date to a ISO-8601 timestamp.
Parameters:
Name | Type | Description |
---|---|---|
dateTime |
DateTime | The date to convert. |
Returns: string
The equivalent ISO-8601 timestamp.
Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:30
getUtcNow
▸ Static
getUtcNow(): string
Gets the current UTC time in ISO-8601 format.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:89
iso8601ToDateTime
▸ Static
iso8601ToDateTime(iso8601
: string): DateTime
Converts a ISO-8601 timestamp to a date.
Parameters:
Name | Type | Description |
---|---|---|
iso8601 |
string | The ISO-8601 timestamp to convert. |
Returns: DateTime
The equivalent date.
Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:103