Tuesday 20 September 2022

Local Date time in TOML

A date-time without a time-zone in the ISO-8601 calendar system, such as 2022-05-05T09:32:00. To improve the readability, you can replace the character T with a space.

 

localDateTime.toml

ldt1 = 2022-05-05T09:32:00
ldt2 = 2022-05-05 09:32:00
ldt3 = 2022-05-05 09:32:00.999999

 

Above snippet is equivalent to following json.

{
  "ldt1": "2022-05-05T09:32:00.000",
  "ldt2": "2022-05-05T09:32:00.000",
  "ldt3": "2022-05-05T09:32:00.999"
}

If the milliseconds precision value contains greater precision than the implementation can support, the additional precision must be truncated, not rounded.

 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment