Tuesday 20 September 2022

Local time in TOML

LocalTime represents a time, often viewed as hour-minute-second.

 

localTime.toml

lt1 = 07:32:00

lt2 = 07:32:00.99999

 

Above snippet is equivalent to following json.

{
  "lt1": "07:32:00.000",
  "lt2": "07: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