Function secondsSinceDate

  • Returns the number of seconds that have passed since the given date.

    Parameters

    • date: number | Date

      The date from which to calculate the number of seconds.

    Returns number

    The number of seconds since the given date.

    Example

    secondsSinceDate(new Date('2020-01-01'));;
    //=> {number of seconds since 2020-01-01}

Generated using TypeDoc