Function minutesSinceDate

  • Calculates the number of minutes that have passed since the given date.

    Parameters

    • date: number | Date

      The date from which to calculate the number of minutes that have passed.

    Returns number

    The number of minutes that have passed since the given date.

    Example

    new Date('2020-01-01T00:00:00Z');;
    //=> {date}
    minutesSinceDate(new Date('2020-01-01T00:00:00Z'));;
    //=> {number of minutes since 2020-01-01T00:00:00Z}

Generated using TypeDoc