std.date time problem
Stewart Gordon
smjg_1998 at yahoo.com
Thu Aug 23 03:23:51 PDT 2007
"Regan Heath" <regan at netmail.co.nz> wrote in message
news:fagv8h$24kn$1 at digitalmars.com...
> Stewart Gordon wrote:
<snip>
>> "It isn't documented but the input to toTimeString() is assumed to be
>> UTC, and it outputs a Local time string."
>
> Ahhh. Ick. That's a bit counter-intuitive no?
>
> I'd prefer timezone conversions to be restricted to the explicit calls
> UTCtoLocalTime and LocalTimetoUTC.
<snip>
AISI the problem is that d_times can be in an arbitrary mix of time zones,
yet don't contain time zone information.
My utility library
http://pr.stewartsplace.org.uk/d/sutil/
does it better - a DateTime or TimeValue is always stored in UTC.
Stewart.
More information about the Digitalmars-d
mailing list