jw
07/09/2019, 9:09 PMkarelpeeters
07/09/2019, 9:14 PMNir
07/09/2019, 9:17 PMAs far as I understand this KEEP is mostly about duration and timing related to measurement, timeouts etc. and not for real-world date/time application.
Nir
07/09/2019, 9:17 PMjw
07/09/2019, 9:17 PMNir
07/09/2019, 9:17 PMNir
07/09/2019, 9:18 PMNir
07/09/2019, 9:18 PMWe believe that the API for working with date and times is a cornerstone thing and ideally it should be provided in the standard library. Unfortunately, the full blown date-time support is too heavy to be included in the stdlib, so we're trying to find a balance here. Duration and time measurement seem to have a moderate API surface and cover a lot of time use cases, so placing them in the stdlib looks reasonable.
jw
07/09/2019, 9:19 PMNir
07/09/2019, 9:19 PMNir
07/09/2019, 9:20 PMjw
07/09/2019, 9:20 PMNir
07/09/2019, 9:21 PMjw
07/09/2019, 9:21 PMNir
07/09/2019, 9:22 PMNir
07/09/2019, 9:23 PMNir
07/09/2019, 9:24 PMribesg
07/09/2019, 9:24 PMInt
, Long
, etcjw
07/09/2019, 9:24 PMjw
07/09/2019, 9:25 PMNir
07/09/2019, 9:25 PMribesg
07/09/2019, 9:25 PMjw
07/09/2019, 9:26 PMribesg
07/09/2019, 9:26 PMNir
07/09/2019, 9:27 PMNir
07/09/2019, 9:27 PMAnother approach that was considered is introducing the class TimeStamp and the arithmetic operations on it that return Duration. However, it was concluded to be error-prone because it would be too easy to mix two timestamps taken from unrelated time sources in a single expression and get nonsense in the result.
jw
07/09/2019, 9:27 PMjw
07/09/2019, 9:27 PM