On Tue, Oct 29, 2019 at 08:43:42PM -0300, Beraldo Leal wrote: > Hi Amador, my comments below: > > On Tue, Oct 29, 2019 at 5:16 PM Amador Pahim <ama...@pahim.org> wrote: > > About precision (mentioned in the trello card), no matter the format > > you pick, it all starts with an epoch on a float with the maximum > > precision provided by the platform (time.time()). So one cannot get > > more precise than that, afaik. > > I agree. > > > [nrunner] > > # datetime: epoch or asctime (defaults to asctime) > > datetime = asctime > > # datefmt: asctime formatters using strftime (defaults to ISO-8601 format) > > datefmt = '%Y-%m-%d %H:%M:%S' > > > > "epoch" would give users time.time(). > > "asctime" would give users time.strftime(datefmt, > time.localtime(time.time())) > > My only concern here is to have a datetime stored like "2019-12-01 > 09:02:52", > *without* the timezone information. This will cause ambiguity. >
Agreed. If we were to use a textual based time, like "2019-12-01 09:02:52", we should assume it's in a specific TZ, such as UTC. - Cleber. > Daylight saving time rules change from time to time. To correctly calculate > the difference from > hourA to hourB, we would need to lookup at all historical variations in > daylight saving time rules. > > Regards, > -- > Beraldo Leal > Senior Software Engineer, Virtualization Team > Red Hat