Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class which exposes functions for managing date and time operations.

Hierarchy

  • TimeUtils

Index

Constructors

constructor

Methods

Static delay

  • delay<T>(t: number, value?: T): Promise<void | T>

Static isTokenExpired

  • isTokenExpired(expiresOn: string, offset: number): boolean

Static nowSeconds

  • nowSeconds(): number

Static wasClockTurnedBack

  • wasClockTurnedBack(cachedAt: string): boolean
  • If the current time is earlier than the time that a token was cached at, we must discard the token i.e. The system clock was turned back after acquiring the cached token

    Parameters

    • cachedAt: string

    Returns boolean

Generated using TypeDoc