Closed io7m closed 1 year ago
The standard OffsetDateTime
can be represented as:
[record OffsetDateTime
[field local LocalDateTime]
[field zone ZoneOffset]
]
Where:
[record LocalDate
[field year cb:Unsigned32]
[field month cb:Unsigned16]
[field day cb:Unsigned16]
]
[record LocalTime
[field hour cb:Unsigned8]
[field minute cb:Unsigned8]
[field second cb:Unsigned8]
[field nanos cb:Unsigned32]
]
[record LocalDateTime
[field date LocalDate]
[field time LocalTime]
]
[record ZoneOffset
[field seconds cb:Unsigned32]
]
Given the number of types involved, this should probably be introduced into a new package.
The standard
Duration
type can be represented as:The
nanos
field is actually defined as never exceeding999999999
.