| 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 |
GI.GLib.Structs.TimeVal
Description
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)
- newZeroTimeVal :: MonadIO m => m TimeVal
- noTimeVal :: Maybe TimeVal
- data TimeValAddMethodInfo
- timeValAdd :: MonadIO m => TimeVal -> CLong -> m ()
- timeValFromIso8601 :: MonadIO m => Text -> m (Bool, TimeVal)
- data TimeValToIso8601MethodInfo
- timeValToIso8601 :: MonadIO m => TimeVal -> m Text
- getTimeValTvSec :: MonadIO m => TimeVal -> m CLong
- setTimeValTvSec :: MonadIO m => TimeVal -> CLong -> m ()
- timeValTvSec :: AttrLabelProxy "tvSec"
- getTimeValTvUsec :: MonadIO m => TimeVal -> m CLong
- setTimeValTvUsec :: MonadIO m => TimeVal -> CLong -> m ()
- timeValTvUsec :: AttrLabelProxy "tvUsec"
Exported types
Constructors
| TimeVal (ForeignPtr TimeVal) |
Instances
| WrappedPtr TimeVal Source # | |
| (~) AttrOpTag tag AttrSet => Constructible TimeVal tag Source # | |
| ((~) * info (ResolveTimeValMethod t TimeVal), MethodInfo * info TimeVal p) => IsLabel t (TimeVal -> p) Source # | |
| ((~) * info (ResolveTimeValMethod t TimeVal), MethodInfo * info TimeVal p) => IsLabelProxy t (TimeVal -> p) Source # | |
| HasAttributeList * TimeVal Source # | |
| ((~) * signature (m Text), MonadIO m) => MethodInfo * TimeValToIso8601MethodInfo TimeVal signature Source # | |
| ((~) * signature (CLong -> m ()), MonadIO m) => MethodInfo * TimeValAddMethodInfo TimeVal signature Source # | |
| type AttributeList TimeVal Source # | |
Methods
timeValAdd
data TimeValAddMethodInfo Source #
timeValFromIso8601
timeValToIso8601
timeValToIso8601 :: MonadIO m => TimeVal -> m Text Source #
Properties
TvSec
timeValTvSec :: AttrLabelProxy "tvSec" Source #
TvUsec
timeValTvUsec :: AttrLabelProxy "tvUsec" Source #