On Tue, 16 Nov 2010 14:11:05 -0500, Steve Teale <steve.te...@britseyeview.com> wrote:

I have moaned several times about the fact that this module does not have a method for creating a date from the system clock.

It provides a parse method to convert a string in a limited number of formats. In the course of doing that, it calls the OS primitive to get the time zone offset.

So why the omission? If it's going to use the OS, why not go the whole hog.

It also strikes me as odd that it does not include a table of leap seconds. As it stands, some of its methods could return values that were out by a year for up to four or five seconds on January 1 2011. I'm no expert on UTC, Gregorian Calendar and such, so I could well be wrong, but ....

Phobos doesn't really need the burden of such tasks. Most OS's provide regular upgrades that cover this stuff.

Jonathan Davis has been creating a date/time library that will replace std.time.

See earlier posts on this newsgroup about std.datetime updates

Please comment if you think there are problems with it.

-Steve

Reply via email to