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
Why
YAML 1.2.2 does not include
!!timestampin 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-Yamlshould resolve it to[datetime]or[datetimeoffset].ConvertTo-Yamlshould emit[datetime]/[datetimeoffset]values as ISO 8601 strings.Spec examples covered