| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Time.Millis
Description
Avro defines a specific logical type for time
differences expessed in milliseconds. This module
provides a type which wraps the DiffTime from
the time library (which uses nanoseconds),
offering a millisecond-based interface.
Synopsis
- newtype DiffTimeMs = DiffTimeMs {}
- diffTimeToMillis :: DiffTimeMs -> Integer
- millisToDiffTime :: Integer -> DiffTimeMs
Documentation
newtype DiffTimeMs Source #
Wrapper for time difference expressed in milliseconds
Constructors
| DiffTimeMs | |
Fields | |
Instances
diffTimeToMillis :: DiffTimeMs -> Integer Source #
Obtain the underlying time in milliseconds from a DiffTimeMs.
millisToDiffTime :: Integer -> DiffTimeMs Source #
Build a DiffTimeMs from an amount expressed in milliseconds.