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>): ChronosParameters
unit: Unit to start fromweekStartsOn: Week start day (from0-6) (default: 0)
Return Type
Chronos - Start of period
Example
playground.ts
Last updated: Thu, May 21, 2026 09:14:30AM (UTC)
