A time module isn't much use without time zone support. The first step is to make library(time_zone) which encapsulates all information in the zoneinfo database and makes it conveniently accessible. Using that module, add time zone support to Julian.
This probably requires representing times as datetime(MJD, Nano, TZ). Both local and utc should probably be special time zones. I need to think long and hard about the semantics of time zones. What does MJD mean when TZ=america/denver, for example?
A time module isn't much use without time zone support. The first step is to make
library(time_zone)
which encapsulates all information in the zoneinfo database and makes it conveniently accessible. Using that module, add time zone support to Julian.This probably requires representing times as
datetime(MJD, Nano, TZ)
. Bothlocal
andutc
should probably be special time zones. I need to think long and hard about the semantics of time zones. What doesMJD
mean whenTZ=america/denver
, for example?