toJSON
Converts the Chronos instance to a JSON string representation.
toJSON()
Enables JSON.stringify to show readable output. Calls toLocalISOString method.
Signature
toJSON(): stringReturn Type
string - ISO string
Notes
- Used by
JSON.stringify() - Same as
toLocalISOString()
Example
playground.ts
Last updated: Wed, May 20, 2026 06:24:17PM (UTC)
