Skip to content
ts
function parse(value, options?): ZonedDateTime;

Standalone Parser Returns a Temporal.ZonedDateTime from a variety of inputs.

Parameters

ParameterTypeDescription
valueDateTimeThe date-time value to parse (string, number, Date, or Tempo instance).
optionsOptionsConfiguration overrides for this specific parse operation.

Returns

ZonedDateTime

Example

ts
import { parse } from '@magmacomputing/tempo/parse';
const zdt = parse('2026-04-22');

Released under the MIT License.