Options
All
  • Public
  • Public/Protected
  • All
Menu

Module background/methods/dataTypes/time

Index

Functions

  • getDateAsStringFromTimestamp(ts: number): string
  • It takes a timestamp and returns a string with the date in the format "DD.MM.YYYY"

    Parameters

    • ts: number

      The timestamp you want to convert to a date string.

    Returns string

    A string

  • getDurationAsString(duration: number): string
  • It takes a number of seconds and returns a string that represents the number of days, hours, minutes, and seconds that number of seconds represents

    Parameters

    • duration: number

      The duration of the video in seconds.

    Returns string

    A string that represents the duration in days, hours, minutes, and seconds.

  • getTimeStamp(): number
  • getTimeStampFromDate(date: Date): number

Generated using TypeDoc version 0.22.15, the 4/20/2022