Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a precise time, with seconds and microseconds. Similar to the struct timeval returned by the gettimeofday() UNIX system call.
GLib is attempting to unify around the use of 64bit integers to represent microsecond-precision time. As such, this type will be removed from a future version of GLib.
- newtype TimeVal = TimeVal (ForeignPtr TimeVal)
- noTimeVal :: Maybe TimeVal
- timeValAdd :: MonadIO m => TimeVal -> Int64 -> m ()
- timeValToIso8601 :: MonadIO m => TimeVal -> m Text
- timeValReadTvSec :: TimeVal -> IO Int64
- timeValReadTvUsec :: TimeVal -> IO Int64
Exported types
Methods
timeValAdd
timeValAdd :: MonadIO m => TimeVal -> Int64 -> m () Source
timeValToIso8601
timeValToIso8601 :: MonadIO m => TimeVal -> m Text Source
Properties
TvSec
timeValReadTvSec :: TimeVal -> IO Int64 Source
TvUsec
timeValReadTvUsec :: TimeVal -> IO Int64 Source