7 Jul 10:36
Re: RFC: Time Library 0.1
Ketil Malde <ketil+haskell <at> ii.uib.no>
2005-07-07 08:36:57 GMT
2005-07-07 08:36:57 GMT
Ashley Yakeley <ashley <at> semantic.org> writes: >> getLeapSecondTable = do [....] > Returning a built-in table is worse than useless, as any program > compiled with it will soon break. Apparently, that's what the Perl library (libdatetime-leapsecond-perl) does. (It's the only thing I can find on my box that seems to worry about leap seconds) "break" as in "give slightly inaccurate results". > We could however check for /etc/leapseconds.txt, that might be useful. > But it's not clear what the behaviour on Windows or other platforms > should be. Is /etc/leapseconds.txt a standardized file/location at all? > readLeapSecondTable :: FilePath -> IO LeapSecondTable It would be nice if it had the ability to fetch the table over the net as well, perhaps? -k -- -- If I haven't seen further, it is by standing in the footprints of giants
RSS Feed