ChronosChronos

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>): Chronos

Parameters

  • unit: Unit to end at
  • weekStartsOn: Week start day (from 0-6) (default: 0)

Return Type

Chronos - End of period

Example

playground.ts

Last updated: Thu, May 21, 2026 09:14:30AM (UTC)

On this page