Options
All
  • Public
  • Public/Protected
  • All
Menu

This class to provide date-time services

Hierarchy

  • DateTimeUtilService

Index

Constructors

Methods

  • getRequiredDateFormat(date: string): string
  • getServerTimestamp(): number
  • stripToSeconds(value: string | Date): string
  • Strips a Date or date-string to seconds precision.

    example

    "2025-01-01T12:34:56.789Z" to "2025-01-01T12:34:56Z"

    Parameters

    • value: string | Date

      The date value to convert.

    Returns string

    The ISO string truncated to seconds.

Generated using TypeDoc