Search Results for

    / fm / liveswitch / Iso8601Timestamp

    Class: Iso8601Timestamp

    fm.liveswitch.Iso8601Timestamp

    Utility class to assist with ISO-8601 timestamp conversions.

    Table of contents

    Constructors

    • constructor

    Methods

    • getTypeString
    • dateTimeToIso8601
    • getUtcNow
    • iso8601ToDateTime

    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

    ▸ StaticdateTimeToIso8601(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

    ▸ StaticgetUtcNow(): string

    Gets the current UTC time in ISO-8601 format.

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/Iso8601Timestamp.ts:89


    iso8601ToDateTime

    ▸ Staticiso8601ToDateTime(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

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6