.secs : Clock t -> TimeT- Totality: total
Visibility: export .nsecs : Clock t -> TimeT- Totality: total
Visibility: export record STimespec : Type -> Type A wrapper around a `struct timespec` pointer.
Totality: total
Visibility: export
Constructor: TS : AnyPtr -> STimespec s
Projection: .ptr : STimespec s -> AnyPtr
Hints:
SizeOf (STimespec s) Struct STimespec
0 IOTimespec : Type- Totality: total
Visibility: public export sec : STimespec s -> F1 s TimeT Reads the `tv_sec` field of a `timespec` pointer.
Totality: total
Visibility: exportnsec : STimespec s -> F1 s NsecT Reads the `tv_nsec` field of a `timespec` pointer.
Totality: total
Visibility: exportsetSec : STimespec s -> TimeT -> F1 s () Sets the `tv_sec` field of a `timespec` pointer.
Totality: total
Visibility: exportsetNsec : STimespec s -> NsecT -> F1 s () Sets the `tv_nsec` field of a `timespec` pointer.
Totality: total
Visibility: exporttoClock : STimespec s -> F1 s (Clock t) Convert a `STimespec` to a `Clock t`
Totality: total
Visibility: exportwithTimespec : Clock t -> (IOTimespec -> EPrim a) -> EPrim a- Totality: total
Visibility: export convertClock : Convert (Clock t)- Totality: total
Visibility: export record STimeval : Type -> Type- Totality: total
Visibility: export
Constructor: STV : AnyPtr -> STimeval s
Projection: .ptr : STimeval s -> AnyPtr
Hints:
SizeOf (STimeval s) Struct STimeval
0 IOTimeval : Type- Totality: total
Visibility: public export sec : STimeval s -> F1 s TimeT- Totality: total
Visibility: export usec : STimeval s -> F1 s SusecondsT- Totality: total
Visibility: export setsec : STimeval s -> TimeT -> F1 s ()- Totality: total
Visibility: export setusec : STimeval s -> SusecondsT -> F1 s ()- Totality: total
Visibility: export record Timeval : Type Pure alternative to the `STimeval` struct.
Totality: total
Visibility: public export
Constructor: TV : TimeT -> SusecondsT -> Timeval
Projections:
.sec : Timeval -> TimeT .usec : Timeval -> SusecondsT
Hints:
Convert Timeval Eq Timeval Show Timeval
.sec : Timeval -> TimeT- Totality: total
Visibility: public export sec : Timeval -> TimeT- Totality: total
Visibility: public export .usec : Timeval -> SusecondsT- Totality: total
Visibility: public export usec : Timeval -> SusecondsT- Totality: total
Visibility: public export stimeval : Timeval -> F1 s (STimeval s)- Totality: total
Visibility: export timeval : STimeval s -> F1 s Timeval- Totality: total
Visibility: export convertTimeval : Convert Timeval- Totality: total
Visibility: export record Itimerval : Type -> Type- Totality: total
Visibility: export
Constructor: ITV : AnyPtr -> Itimerval s
Projection: .ptr : Itimerval s -> AnyPtr
Hints:
SizeOf (Itimerval s) Struct Itimerval
0 IOTimerval : Type- Totality: total
Visibility: public export interval : Itimerval s -> F1 s (STimeval s)- Totality: total
Visibility: export value : Itimerval s -> F1 s (STimeval s)- Totality: total
Visibility: export setinterval : Itimerval s -> STimeval s -> F1 s ()- Totality: total
Visibility: export setvalue : Itimerval s -> STimeval s -> F1 s ()- Totality: total
Visibility: export record Timerval : Type Pure alternative to the `Itimerval` struct.
Totality: total
Visibility: public export
Constructor: TRV : Timeval -> Timeval -> Timerval
Projections:
.interval : Timerval -> Timeval .value : Timerval -> Timeval
Hints:
Convert Timerval Eq Timerval Show Timerval
.interval : Timerval -> Timeval- Totality: total
Visibility: public export interval : Timerval -> Timeval- Totality: total
Visibility: public export .value : Timerval -> Timeval- Totality: total
Visibility: public export value : Timerval -> Timeval- Totality: total
Visibility: public export itimerval : Timerval -> F1 s (Itimerval s) Creates and sets the fields of a `Itimerval` pointer.
The allocated memory must be freed via `freeStruct`.
Totality: total
Visibility: exporttimerval : Itimerval s -> F1 s Timerval- Totality: total
Visibility: export convertTimerval : Convert Timerval- Totality: total
Visibility: export get_itimerspec_it_interval : AnyPtr -> PrimIO AnyPtrget_itimerspec_it_value : AnyPtr -> PrimIO AnyPtrset_itimerspec_it_interval : AnyPtr -> AnyPtr -> PrimIO ()set_itimerspec_it_value : AnyPtr -> AnyPtr -> PrimIO ()record Itimerspec : Type -> Type Note: Also this is POSIX compliant, it is not available on
MacOS (Darwin). Idris programs making use of this might fail on
Darwin during code generation.
Totality: total
Visibility: export
Constructor: ITS : AnyPtr -> Itimerspec s
Projection: .ptr : Itimerspec s -> AnyPtr
Hints:
SizeOf (Itimerspec s) Struct Itimerspec
0 IOTimerspec : Type- Totality: total
Visibility: public export interval : Itimerspec s -> F1 s (STimespec s)- Totality: total
Visibility: export value : Itimerspec s -> F1 s (STimespec s)- Totality: total
Visibility: export setinterval : Itimerspec s -> STimespec s -> F1 s ()- Totality: total
Visibility: export setvalue : Itimerspec s -> STimespec s -> F1 s ()- Totality: total
Visibility: export itimerspec : TimeT -> NsecT -> TimeT -> NsecT -> F1 s (Itimerspec s) Creates and sets the fields of a `Itimerspec` pointer.
The allocated memory must be freed via `freeStruct`.
Totality: total
Visibility: exportrecord Timerspec : Type Pure alternative to the `Itimerspec` struct.
Totality: total
Visibility: public export
Constructor: TS : Clock Duration -> Clock Duration -> Timerspec
Projections:
.interval : Timerspec -> Clock Duration .value : Timerspec -> Clock Duration
Hints:
Convert Timerspec Eq Timerspec Show Timerspec
.interval : Timerspec -> Clock Duration- Totality: total
Visibility: public export interval : Timerspec -> Clock Duration- Totality: total
Visibility: public export .value : Timerspec -> Clock Duration- Totality: total
Visibility: public export value : Timerspec -> Clock Duration- Totality: total
Visibility: public export timerspec : Itimerspec s -> F1 s Timerspec- Totality: total
Visibility: export duration : TimeT -> NsecT -> Clock Duration- Totality: total
Visibility: export convTimerspec : Convert Timerspec- Totality: total
Visibility: export get_tm_sec : AnyPtr -> PrimIO Bits8get_tm_min : AnyPtr -> PrimIO Bits8get_tm_hour : AnyPtr -> PrimIO Bits8get_tm_mday : AnyPtr -> PrimIO Bits8get_tm_mon : AnyPtr -> PrimIO Bits8get_tm_year : AnyPtr -> PrimIO Int32get_tm_wday : AnyPtr -> PrimIO Bits8get_tm_yday : AnyPtr -> PrimIO Bits16get_tm_isdst : AnyPtr -> PrimIO Int8prim__gmtime_r : TimeT -> AnyPtr -> PrimIO ()prim__localtime_r : TimeT -> AnyPtr -> PrimIO ()ctime : TimeT -> String Converts time to a nicely formatted string.
prim__asctime_r : Bits8 -> Bits8 -> Bits8 -> Bits8 -> Bits8 -> Int32 -> Bits8 -> Bits16 -> Int8 -> Stringprim__mktime : Bits8 -> Bits8 -> Bits8 -> Bits8 -> Bits8 -> Int32 -> Bits8 -> Bits16 -> Int8 -> TimeTrecord STm : Type -> Type Note: Although this is POSIX compliant, it is not available on
MacOS (Darwin). Idris programs making use of this might fail on
Darwin during code generation.
Totality: total
Visibility: export
Constructor: STM : AnyPtr -> STm s
Projection: .ptr : STm s -> AnyPtr
Hints:
SizeOf (STm s) Struct STm
getsec : STm s -> F1 s Bits8- Totality: total
Visibility: export getmin : STm s -> F1 s Bits8- Totality: total
Visibility: export gethour : STm s -> F1 s Bits8- Totality: total
Visibility: export getmday : STm s -> F1 s Bits8- Totality: total
Visibility: export getmon : STm s -> F1 s Bits8- Totality: total
Visibility: export getyear : STm s -> F1 s Int32- Totality: total
Visibility: export getwday : STm s -> F1 s Bits8- Totality: total
Visibility: export getyday : STm s -> F1 s Bits16- Totality: total
Visibility: export getisdst : STm s -> F1 s Int8- Totality: total
Visibility: export record Tm : Type Pure alternative to the `STm` struct.
Dissection of a `Clock t` into its time components.
Totality: total
Visibility: public export
Constructor: TM : Bits8 -> Bits8 -> Bits8 -> Bits8 -> Bits8 -> Int32 -> Bits8 -> Bits16 -> Bool -> Tm
Projections:
.hour : Tm -> Bits8 Hour of day (0 - 23)
.isdst : Tm -> Bool `True` if daylight safing time is active
.mday : Tm -> Bits8 Day of month (1 - 31)
.min : Tm -> Bits8 Minute of hour (0 - 59)
.mon : Tm -> Bits8 Month (0 - 11)
.sec : Tm -> Bits8 Second of minute (0 - 60; could be a leap second)
.wday : Tm -> Bits8 Day of week (Sunday = 0)
.yday : Tm -> Bits16 Day of year (0 - 365; 1 Jan = 0)
.year : Tm -> Int32 Year since 1900
Hints:
Convert Tm Eq Tm Show Tm
.sec : Tm -> Bits8 Second of minute (0 - 60; could be a leap second)
Totality: total
Visibility: public exportsec : Tm -> Bits8 Second of minute (0 - 60; could be a leap second)
Totality: total
Visibility: public export.min : Tm -> Bits8 Minute of hour (0 - 59)
Totality: total
Visibility: public exportmin : Tm -> Bits8 Minute of hour (0 - 59)
Totality: total
Visibility: public export.hour : Tm -> Bits8 Hour of day (0 - 23)
Totality: total
Visibility: public exporthour : Tm -> Bits8 Hour of day (0 - 23)
Totality: total
Visibility: public export.mday : Tm -> Bits8 Day of month (1 - 31)
Totality: total
Visibility: public exportmday : Tm -> Bits8 Day of month (1 - 31)
Totality: total
Visibility: public export.mon : Tm -> Bits8 Month (0 - 11)
Totality: total
Visibility: public exportmon : Tm -> Bits8 Month (0 - 11)
Totality: total
Visibility: public export.year : Tm -> Int32 Year since 1900
Totality: total
Visibility: public exportyear : Tm -> Int32 Year since 1900
Totality: total
Visibility: public export.wday : Tm -> Bits8 Day of week (Sunday = 0)
Totality: total
Visibility: public exportwday : Tm -> Bits8 Day of week (Sunday = 0)
Totality: total
Visibility: public export.yday : Tm -> Bits16 Day of year (0 - 365; 1 Jan = 0)
Totality: total
Visibility: public exportyday : Tm -> Bits16 Day of year (0 - 365; 1 Jan = 0)
Totality: total
Visibility: public export.isdst : Tm -> Bool `True` if daylight safing time is active
Totality: total
Visibility: public exportisdst : Tm -> Bool `True` if daylight safing time is active
Totality: total
Visibility: public exportblank : Tm A broken down time value with all fields set to zero (and `False`).
Since `mday` - the day of the month - cannot be 0, it is set to 1 instead.
Totality: total
Visibility: exportepoch : Tm Unix Epoch (00:00:00 on Thursday 1 January 1970)
Totality: total
Visibility: exporttm : STm s -> F1 s Tm- Totality: total
Visibility: export convTm : Convert Tm- Totality: total
Visibility: export gmtime : TimeT -> Tm Converts time in seconds since the Epoch to broken down UTC time.
Totality: total
Visibility: exportlocaltime : TimeT -> Tm Converts time in seconds since the Epoch to broken down local time.
Totality: total
Visibility: exportfromUTC : Clock UTC -> Tm Converts a UTC clock value to broken down local time.
Totality: total
Visibility: exportasctime : Tm -> String Converts time to a nicely formatted string.
Totality: total
Visibility: exportmktime : Tm -> TimeT Converts a broken down time to seconds since the Epoch.
Totality: total
Visibility: exporttoUTC : Tm -> Clock UTC Converts broken down local time to a UTC clock time.
Totality: total
Visibility: exportseconds : Tm -> Integer Keeps only the hours, seconds, and minutes of a broken down time.
Totality: total
Visibility: exportdateOnly : Tm -> Tm Drops the hours, seconds, and minutes from a broken down time.
Totality: total
Visibility: export