utc
Creates a UTC-based Chronos instance.
utc()
Creates a UTC-based Chronos instance.
Signature
static utc(dateLike?: ChronosInput): ChronosParameters
dateLike(optional) – The date input to create a UTC-based time. If omitted, the current system date and time is used.
Return Type
Chronos — A new Chronos instance representing the UTC equivalent of the given (or current) date.
Notes
- Creates a
Chronosinstance based on Coordinated Universal Time (UTC). - If no
dateLike(string/number/object) is provided, it uses the current date and time. - This UTC instance is considered the base time, meaning all time zone conversions are derived from this reference point and not the local time.
Info
Internally, this method adjusts the local time to its UTC equivalent by removing the time zone offset.
Example
playground.ts
Last updated: Thu, May 21, 2026 07:12:18AM (UTC)
