[Haskell-cafe] Fwd: Data.Time

Yitzchak Gale gale at sefer.org
Sun Jul 3 01:35:28 CEST 2011


Ashley Yakeley wrote:
> This was fixed in time-1.2.0.5. From the haddock for parseTime:
>
> "Supports the same %-codes as formatTime, including %-, %_ and %0
> modifiers."

Great, glad to hear this was recently fixed. I installed
the latest version of the time package, and it works.

It is important to note that this works differently than the usual
strptime behavior, though. For example, "%m" in Data.Time is
an alias for "%0m", whereas "%m" in strptime means the
same as "%-m" in Data.Time (optional leading zero).

Thanks,
Yitz



More information about the Haskell-Cafe mailing list