X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=time-w3c.git;a=blobdiff_plain;f=Data%2FTime%2FW3C%2FFormat.hs;fp=Data%2FTime%2FW3C%2FFormat.hs;h=928032b0249893f1c0967f4f2d7ffaf7f73252bf;hp=f3f9fac77d1bb37e79ee8b8fe3e8a8c9c9ed8c19;hb=376869bc3a4e7c2e22fb47152ba2d459b82efdd0;hpb=9b1ea615a387d121a581dc35d0e5bb91d8162811 diff --git a/Data/Time/W3C/Format.hs b/Data/Time/W3C/Format.hs index f3f9fac..928032b 100644 --- a/Data/Time/W3C/Format.hs +++ b/Data/Time/W3C/Format.hs @@ -1,3 +1,4 @@ +-- | Format W3C Date and Time strings. module Data.Time.W3C.Format ( format ) @@ -9,6 +10,9 @@ import Data.Time import Data.Time.W3C.Types +-- | Format W3C Date and Time string from anything convertible to +-- 'W3CDateTime' type. The most obvious acceptable type is the +-- 'W3CDateTime' itself. format :: Convertible t W3CDateTime => t -> String format = format' . convert where