chronologique-0.3.0.0: Time to manipulate time

Chrono.Compat

Description

Compatibility with time types from other time handling libraries. Some of these are just conveniences, but it's not always obvious how to convert between time types even in the same package.

Synopsis

# time package, from base

Utility function to convert nanoseconds since Unix epoch to a NominalDiffTime, allowing you to then use the time manipulation functions in Data.Time.Clock from time.

Annoyingly, the various types in time don't interoperate. Quite frequently you need to get to, or from, UTCTime.

# hourglass package

Utility function to convert nanoseconds since Unix epoch to a ElapsedP, allowing you to then use the time manipulation functions in the hourglass package.