Function subDuration

  • Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.

    Returns

    Parameters

    • date: string | number | Date
    • duration: number | TDuration | Duration
    • exact: boolean = false

    Returns Date

Generated using TypeDoc