Localization with Data.Time.Format.Locale.

目錄

In haskell, locale is defined as a set of how to present date and time nicely. Here we only discuss Data.Time.Format.TimeLocale not Ststem.Locale.

Module Data.Time.Format provides

to allow programmer to define a presenting format for date and time. As well as, it also defines a default locale for the commonest American style.

It’s not hard to figure out how it works. We can also custom our own TimeLocale for Taiwan. :)

[Tags: haskell, packages, time]