Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Functions to prepend the current time to a string. Handy convenience functions for logging.
Examples:
tsL "foo" tsZ "foo" tsLFmt "%B %e, %Y : " "bar" tsUFmt "%c " "baz"
you'd get:
"2009-06-07 01:53:22 EDT> foo" "2009-06-07T13:43:23Z> foo" "June 7, 2009 : bar" "Sun Jun 7 13:15:41 UTC 2009 baz"
Documentation
Prepend the time right now onto the supplied string in the format specified by the format string. Your local time zone. For formatting string options see Data.Time.Format
Prepend the time right now onto the supplied string in the format specified by the format string. Universal time. For formatting string options see Data.Time.Format
Prepend the time right now onto the supplied string. Your time zone. Time is in a clear, sortable format like: 2009-06-04 17:57:13 EDT>
Prepend the time right now onto the supplied string. Universal time. Time is in a clear, sortable format like: 2009-06-04 21:57:13 UTC>