Function formatTimestamp

  • Parameters

    • ts: number

      unix timestamp

    • Optionalformat: string

      format string

    • Optionallocale: string

      locale identifier

    • Optionaltz: string

      timezone

    Returns string | null

    format unix timestamp based on specified format