endOf
Returns a new Chronos instance at the end of a given unit.
endOf()
Returns a new Chronos instance at the end of a given unit.
Signature
endOf(unit: TimeUnit, weekStartsOn?: Enumerate<7>): ChronosParameters
unit: Unit to end atweekStartsOn: Week start day (from0-6) (default: 0)
Return Type
Chronos - End of period
Example
playground.ts
Last updated: Thu, May 21, 2026 09:14:30AM (UTC)
