Represents a specific point in time.

Constructors

Properties

Accessors

Constructors

Properties

fromStamp: (stamp: null | number) => null | Time

Takes a stamp value and converts it into a Time object.

Type declaration

    • (stamp: null | number): null | Time
    • Parameters

      • stamp: null | number

        The stamp value representing minutes since 1970-01-01 00:00.

      Returns null | Time

      • The Time object representing the hour and minute derived from the stamp value.
hour: number
minute: number
toStamp: () => number

Calculates the total minutes represented by the hour and minute properties of an object.

Type declaration

    • (): number
    • Returns number

      The total minutes represented by the hour and minute properties.

toString: () => null | string

Converts the object to a string representation.

Type declaration

    • (): null | string
    • Returns null | string

      The string representation of the object.

Accessors

  • get isValid(): boolean

    Check if time is valid

    Returns boolean