addHours
Adds hours and returns a new immutable instance.
addHours()
Adds hours and returns a new immutable Chronos instance.
Signature
addHours(hours: number): ChronosParameters
hours: Number of hours to add
Return Type
Chronos - New instance with added hours
Example
playground.ts
Alternative
- You can also use
addmethod asoriginal.add(1, 'hour').
Last updated: Thu, May 21, 2026 12:57:11PM (UTC)
