What are the ranges of permissible values for `Date`/`Time`/`RelTime`?
App Development2 posts217 views3 likesLast activity Mar 2022
DT
dtanabeOP
Mar 2022I was reading Reference: data types — Daml SDK 2.0.0 documentation but noticed that limits are documented for Int, Decimal, and BigNumeric, but not for Date, Time, and RelTime.
What are the ranges of permissible values for Date/Time/RelTime?
RE
Remy
Mar 2022Good catch ! We will update the doc.
For the record:
- The Range for
Dateis from0001-01-01to9999-12-31. - The Range for
Timeis from
0001-01-01T00:00:00.000000Zto9999-12-31T23:59:59.999999Z. - The Range for
RelTime(once converted in microseconds) is the same as signed 64 bits integer