tslib-0.1.4: Time series library

Safe HaskellNone
LanguageHaskell2010

Data.UTime

Contents

Description

UTime is a minimalistic efficient alternative to UTCTime.

The UTime representation is intentionally not opaque to allow efficient low-level access. But, you should consider this module "somewhat internal".

Synopsis

Documentation

toUTime :: UTCTime -> UTime Source

Converts UTCTime to UTime by rounding.

toUTimeUp :: UTCTime -> UTime Source

Returns the smallest UTime value representing a time not earlier than the input UTCTime.

toUTimeUp' :: UTCTime -> UTime Source

Returns the smallest UTime value representing a time strictly later than the input UTCTime.

toUTimeDown :: UTCTime -> UTime Source

Returns the largest UTime value representing a time not later than the input UTCTime.

toUTimeDown' :: UTCTime -> UTime Source

Returns the largest UTime value representing a time strictly earlier than the input UTCTime.

For testing only: