Skip to content

Support timestamp parsing #23

Description

Why

YAML 1.2.2 does not include !!timestamp in its core schema, but it is a widely-used yaml.org type from YAML 1.1 that many tools still emit, so real-world YAML often contains timestamp-shaped scalars.

What

When a scalar matches the timestamp pattern (e.g. 2001-12-15T02:59:43.1Z, 2002-12-14), ConvertFrom-Yaml should resolve it to [datetime] or [datetimeoffset]. ConvertTo-Yaml should emit [datetime] / [datetimeoffset] values as ISO 8601 strings.

Spec examples covered

  • Example 2.22 — Timestamps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions