uni-util-2.3.0.3: Utilities for the uniform workbench
Safe HaskellNone
LanguageHaskell2010

Util.ClockTimeToString

Description

This module implements displaying ClockTime as a String which does NOT depend on the time-zone.

Synopsis

Documentation

clockTimeToString :: ClockTime -> String Source #

Convert a ClockTime to a String. This has the format <optional sign><digits>+<digits> where the digits encode two integers N1 and N2 (in order) representing the time elapsed since 00:00:00 UTC on 1 Jan 1970. This will be N1 + (N2 / 10^12) seconds. 0<=N2<10^12.

stringToClockTime :: String -> ClockTime Source #

Convert a validly formatted String to a ClockTime.