[phobos] Status of std.gregorian
Shin Fujishiro
rsinfu at gmail.com
Sun Aug 15 03:17:27 PDT 2010
Jonathan M Davis <jmdavisprog at gmail.com> wrote:
> In any case, ideally, whatever we do for time/date in Phobos is in UTC
> internally and properly handles conversions to other timezones upon request, but
> it isn't ever actually in another timezone internally.
Thank you for the detailed description! Now I convinced that the
time value must be held in UTC always.
Then, if I understand correctly, the time object must hold a UTC time
value alongside timezone information.
struct Time
{
ulong utc;
Timezone tz;
}
... and timezone conversions are done by just replacing the tz member.
Shin
More information about the phobos
mailing list