ChronosChronos

startOf

Returns a new Chronos instance at the start of a given unit.

startOf()

Returns a new Chronos instance at the start of a given unit.

Signature

startOf(unit: TimeUnit, weekStartsOn?: Enumerate<7>): Chronos

Parameters

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

Return Type

Chronos - Start of period

Example

playground.ts

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

On this page