Starting with tag: [TAG 0.3 Ashley Yakeley **20060319034424] [export isLeapYear in Calendar; new version Ashley Yakeley **20060319034759] [remove everything not part of time package Ashley Yakeley **20060501072030] [move time files to proper place Ashley Yakeley **20060501080737] [make suitable for build process Ashley Yakeley **20060501092111] [haddock working with time package Ashley Yakeley **20060503054116] [set up boringfile Ashley Yakeley **20060504062030] [XCode build and temp files are boring Ashley Yakeley **20060504062758] [Various fixes to make this build & work on Windows Simon Marlow **20060529122523 A number of things didn't work on Windows: we were using gettimeofday() which doesn't exist, localtime_r() doesn't exist, the tm_zone field in struct tm doesn't exist, etc. * timestuff.{c,h} is now cbits/HsTime.c and includes/HsTime.h, for consistency with other packages * There's a configure script. Hence, a default Setup.hs will be required for using Cabal (I haven't added this yet, I think we were going to make some more changes in Cabal to make it optional). * fixed various problems in package.conf.in. I haven't tested time.cabal, I expect it doesn't work on Windows, but it might still work on Unix. * We get the current time from the native Win32 API. This requires the Win32 library, hence a conditional dependency on Win32. * some cursory testing on Win32, we can get the local time and the timezone looks ok. ] [fix build breakage on Linux Simon Marlow **20060529124250] [remove dependency on ghcconfig.h Ross Paterson **20060530233029] [CFILES directive for the benefit of Hugs Ross Paterson **20060530232948] [extra Cabal fields for clean and sdist Ross Paterson **20060530235152] [fix typo Simon Marlow **20060606121620] [re-add #include "ghcconfig.h", conditional on __GLASGOW_HASKELL__ simonmar@microsoft.com**20060606123841] [remove debugging code simonmar@microsoft.com**20060606130044] [use non-GHC-specific #ifdef test for Windows Simon Marlow **20060607081806] [no need to include ghcconfig.h any more Simon Marlow **20060607081829] [eliminate the other mingw32_HOST_OS test Ross Paterson **20060607083528] [Set version to 1.0 stable Ashley Yakeley **20060611220322] [add aclocal.m4 to extra sources Ross Paterson **20060829123640] [includes -> install-includes Ross Paterson **20060829123745] [fix C-Sources (#893) Ross Paterson **20060908225313] [note CPP extension Ross Paterson **20060908233707] [fix up XCode project file for added files Ashley Yakeley **20060924221149] [add Setup.hs Ross Paterson **20060928124341] [Changed docs for %U and %W to include the possibility of week 0 results. bjorn@bringert.net**20061111165207] [Fixed typo: s/propleptic/proleptic/. bjorn@bringert.net**20061111165549] [Added missing example for showWeekDate. bjorn@bringert.net**20061115220739 The showWeekDate haddock comment was: "show in ISO 8601 Week Date format as yyyy-Www-dd (e.g." ] [Handle 'c' also in formatTime for ZonedTime, to get %Z filled in for ZonedTime and UTCTime. bjorn@bringert.net**20061115220818 Before, formatTime "%c" did not include the time zone even when applied to ZonedTime or UTCTime, since "%c" was handled by the FormatTime LocalTime instance: > fmap (formatTime System.Locale.defaultTimeLocale "%c") getZonedTime "Sat Nov 11 19:12:45.395568 2006" > fmap (formatTime System.Locale.defaultTimeLocale "%c") getCurrentTime "Sat Nov 11 18:13:52.010944 2006" Now it is correct: > fmap (formatTime System.Locale.defaultTimeLocale "%c") getZonedTime "Wed Nov 15 23:08:43.987526 CET 2006" > fmap (formatTime System.Locale.defaultTimeLocale "%c") getCurrentTime "Wed Nov 15 22:08:51.530603 UTC 2006" ] [Add secondsToDiffTime and picosecondsToDiffTime. bjorn@bringert.net**20061115222145 Rationale: As has come up on haskell-cafe (http://comments.gmane.org/gmane.comp.lang.haskell.cafe/15653), it takes a while to figure out how to make DiffTime values. secondsToDiffTime is not that important since it is just another name for fromInteger, but I suspect that it would be used a lot. Using fromRational to create a DiffTime from a number of picoseconds is a bit of a hassle, so having a picosecondsToDiffTime would be useful. ] [Added fromMondayStartWeek and fromSundayStartWeek to Data.Time.Calendar.OrdinalDate. bjorn@bringert.net**20061116092114 I couldn't find any duals of mondayStartWeek and sundayStartWeek. They are useful when implementing parsing for %W and %U. ] [Some haddock formatting for fromMondayStartWeek and fromSundayStartWeek. bjorn@bringert.net**20061116095620] [Added Data.Time.LocalTime.Parse, UNIX-style time parsing. bjorn@bringert.net**20061116095849 The old System.Time has had a TODO "* add functions to parse strings to `CalendarTime' (some day...)" for a long time. The question about date parsing comes up once in a while on the mailing lists (e.g. http://comments.gmane.org/gmane.comp.lang.haskell.cafe/16438). ] [Updated SRC and dependencies in time/Makefile to include Data.Time.LocalTime.Parse. bjorn@bringert.net**20061116104438] [Changed UTC to +0000 in default time zone in ParseTime, to avoid spurios time zone names. bjorn@bringert.net**20061116105254] [Added quickcheck properties for time parsing. bjorn@bringert.net**20061116105616] [Moved %c to failing ZonedTime test since formatTime %Z does not output time zone offset if there is no time zone name. bjorn@bringert.net**20061116111247] [Changed test case Makefile to work with GHC 6.6 (there is no -package fixed). bjorn@bringert.net**20061116111346] [Compile test programs using ../../dist/build/libHStime-1.0.a as produced by the Cabal build step. bjorn@bringert.net**20061116112048] [Fixed taiEpoch Haddock comment to include the epoch time. bjorn@bringert.net**20061116120024 The taiEpoch haddock comment was just "The epoch of TAI, which is". Changed this to "The epoch of TAI, which is 1858-11-17 00:00:00 TAI." ]