
9 Nov
2006
9 Nov
'06
10:58 a.m.
Quoth Magnus Therning, nevermore,
I've been staring my eyes out trying to find a function that converts a string into a ClockTime or CalendarTime. Basically something like C's strptime(3). I can't seem to find anything like it in System.Time, there are function that convert _to_ a string, but nothing that converts _from_ a string it seems. Where should I look?
The MissingH.Time.ParseDate [1] module might be what you want. There's also one from Bjorn Bringert [2]. I haven't used either though, so I can't recommend anything between them. Cheers, D. [1]: http://quux.org:70/devel/missingh/html/MissingH-Time-ParseDate.html [2]: http://www.cs.chalmers.se/~bringert/darcs/parsedate/