Idris2Doc : System.Posix.Time

System.Posix.Time

(source)

Reexports

importpublic Data.C.Integer
importpublic System.Clock
importpublic System.Posix.Errno
importpublic System.Posix.Time.Types
importpublic System.Posix.Timer.Types

Definitions

.secs : Clockt->TimeT
Totality: total
Visibility: export
.nsecs : Clockt->TimeT
Totality: total
Visibility: export
recordSTimespec : Type->Type
  A wrapper around a `struct timespec` pointer.

Totality: total
Visibility: export
Constructor: 
TS : AnyPtr->STimespecs

Projection: 
.ptr : STimespecs->AnyPtr

Hints:
SizeOf (STimespecs)
StructSTimespec
0IOTimespec : Type
Totality: total
Visibility: public export
sec : STimespecs->F1sTimeT
  Reads the `tv_sec` field of a `timespec` pointer.

Totality: total
Visibility: export
nsec : STimespecs->F1sNsecT
  Reads the `tv_nsec` field of a `timespec` pointer.

Totality: total
Visibility: export
setSec : STimespecs->TimeT->F1s ()
  Sets the `tv_sec` field of a `timespec` pointer.

Totality: total
Visibility: export
setNsec : STimespecs->NsecT->F1s ()
  Sets the `tv_nsec` field of a `timespec` pointer.

Totality: total
Visibility: export
toClock : STimespecs->F1s (Clockt)
  Convert a `STimespec` to a `Clock t`

Totality: total
Visibility: export
withTimespec : Clockt-> (IOTimespec->EPrima) ->EPrima
Totality: total
Visibility: export
convertClock : Convert (Clockt)
Totality: total
Visibility: export
recordSTimeval : Type->Type
Totality: total
Visibility: export
Constructor: 
STV : AnyPtr->STimevals

Projection: 
.ptr : STimevals->AnyPtr

Hints:
SizeOf (STimevals)
StructSTimeval
0IOTimeval : Type
Totality: total
Visibility: public export
sec : STimevals->F1sTimeT
Totality: total
Visibility: export
usec : STimevals->F1sSusecondsT
Totality: total
Visibility: export
setsec : STimevals->TimeT->F1s ()
Totality: total
Visibility: export
setusec : STimevals->SusecondsT->F1s ()
Totality: total
Visibility: export
recordTimeval : 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:
ConvertTimeval
EqTimeval
ShowTimeval
.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->F1s (STimevals)
Totality: total
Visibility: export
timeval : STimevals->F1sTimeval
Totality: total
Visibility: export
convertTimeval : ConvertTimeval
Totality: total
Visibility: export
recordItimerval : Type->Type
Totality: total
Visibility: export
Constructor: 
ITV : AnyPtr->Itimervals

Projection: 
.ptr : Itimervals->AnyPtr

Hints:
SizeOf (Itimervals)
StructItimerval
0IOTimerval : Type
Totality: total
Visibility: public export
interval : Itimervals->F1s (STimevals)
Totality: total
Visibility: export
value : Itimervals->F1s (STimevals)
Totality: total
Visibility: export
setinterval : Itimervals->STimevals->F1s ()
Totality: total
Visibility: export
setvalue : Itimervals->STimevals->F1s ()
Totality: total
Visibility: export
recordTimerval : 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:
ConvertTimerval
EqTimerval
ShowTimerval
.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->F1s (Itimervals)
  Creates and sets the fields of a `Itimerval` pointer.

The allocated memory must be freed via `freeStruct`.

Totality: total
Visibility: export
timerval : Itimervals->F1sTimerval
Totality: total
Visibility: export
convertTimerval : ConvertTimerval
Totality: total
Visibility: export
get_itimerspec_it_interval : AnyPtr->PrimIOAnyPtr
get_itimerspec_it_value : AnyPtr->PrimIOAnyPtr
set_itimerspec_it_interval : AnyPtr->AnyPtr->PrimIO ()
set_itimerspec_it_value : AnyPtr->AnyPtr->PrimIO ()
recordItimerspec : 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->Itimerspecs

Projection: 
.ptr : Itimerspecs->AnyPtr

Hints:
SizeOf (Itimerspecs)
StructItimerspec
0IOTimerspec : Type
Totality: total
Visibility: public export
interval : Itimerspecs->F1s (STimespecs)
Totality: total
Visibility: export
value : Itimerspecs->F1s (STimespecs)
Totality: total
Visibility: export
setinterval : Itimerspecs->STimespecs->F1s ()
Totality: total
Visibility: export
setvalue : Itimerspecs->STimespecs->F1s ()
Totality: total
Visibility: export
itimerspec : TimeT->NsecT->TimeT->NsecT->F1s (Itimerspecs)
  Creates and sets the fields of a `Itimerspec` pointer.

The allocated memory must be freed via `freeStruct`.

Totality: total
Visibility: export
recordTimerspec : Type
  Pure alternative to the `Itimerspec` struct.

Totality: total
Visibility: public export
Constructor: 
TS : ClockDuration->ClockDuration->Timerspec

Projections:
.interval : Timerspec->ClockDuration
.value : Timerspec->ClockDuration

Hints:
ConvertTimerspec
EqTimerspec
ShowTimerspec
.interval : Timerspec->ClockDuration
Totality: total
Visibility: public export
interval : Timerspec->ClockDuration
Totality: total
Visibility: public export
.value : Timerspec->ClockDuration
Totality: total
Visibility: public export
value : Timerspec->ClockDuration
Totality: total
Visibility: public export
timerspec : Itimerspecs->F1sTimerspec
Totality: total
Visibility: export
duration : TimeT->NsecT->ClockDuration
Totality: total
Visibility: export
convTimerspec : ConvertTimerspec
Totality: total
Visibility: export
get_tm_sec : AnyPtr->PrimIOBits8
get_tm_min : AnyPtr->PrimIOBits8
get_tm_hour : AnyPtr->PrimIOBits8
get_tm_mday : AnyPtr->PrimIOBits8
get_tm_mon : AnyPtr->PrimIOBits8
get_tm_year : AnyPtr->PrimIOInt32
get_tm_wday : AnyPtr->PrimIOBits8
get_tm_yday : AnyPtr->PrimIOBits16
get_tm_isdst : AnyPtr->PrimIOInt8
prim__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->String
prim__mktime : Bits8->Bits8->Bits8->Bits8->Bits8->Int32->Bits8->Bits16->Int8->TimeT
recordSTm : 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->STms

Projection: 
.ptr : STms->AnyPtr

Hints:
SizeOf (STms)
StructSTm
getsec : STms->F1sBits8
Totality: total
Visibility: export
getmin : STms->F1sBits8
Totality: total
Visibility: export
gethour : STms->F1sBits8
Totality: total
Visibility: export
getmday : STms->F1sBits8
Totality: total
Visibility: export
getmon : STms->F1sBits8
Totality: total
Visibility: export
getyear : STms->F1sInt32
Totality: total
Visibility: export
getwday : STms->F1sBits8
Totality: total
Visibility: export
getyday : STms->F1sBits16
Totality: total
Visibility: export
getisdst : STms->F1sInt8
Totality: total
Visibility: export
recordTm : 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:
ConvertTm
EqTm
ShowTm
.sec : Tm->Bits8
  Second of minute (0 - 60; could be a leap second)

Totality: total
Visibility: public export
sec : 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 export
min : Tm->Bits8
  Minute of hour (0 - 59)

Totality: total
Visibility: public export
.hour : Tm->Bits8
  Hour of day (0 - 23)

Totality: total
Visibility: public export
hour : Tm->Bits8
  Hour of day (0 - 23)

Totality: total
Visibility: public export
.mday : Tm->Bits8
  Day of month (1 - 31)

Totality: total
Visibility: public export
mday : Tm->Bits8
  Day of month (1 - 31)

Totality: total
Visibility: public export
.mon : Tm->Bits8
  Month (0 - 11)

Totality: total
Visibility: public export
mon : Tm->Bits8
  Month (0 - 11)

Totality: total
Visibility: public export
.year : Tm->Int32
  Year since 1900

Totality: total
Visibility: public export
year : Tm->Int32
  Year since 1900

Totality: total
Visibility: public export
.wday : Tm->Bits8
  Day of week (Sunday = 0)

Totality: total
Visibility: public export
wday : 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 export
yday : 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 export
isdst : Tm->Bool
  `True` if daylight safing time is active

Totality: total
Visibility: public export
blank : 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: export
epoch : Tm
  Unix Epoch (00:00:00 on Thursday 1 January 1970)

Totality: total
Visibility: export
tm : STms->F1sTm
Totality: total
Visibility: export
convTm : ConvertTm
Totality: total
Visibility: export
gmtime : TimeT->Tm
  Converts time in seconds since the Epoch to broken down UTC time.

Totality: total
Visibility: export
localtime : TimeT->Tm
  Converts time in seconds since the Epoch to broken down local time.

Totality: total
Visibility: export
fromUTC : ClockUTC->Tm
  Converts a UTC clock value to broken down local time.

Totality: total
Visibility: export
asctime : Tm->String
  Converts time to a nicely formatted string.

Totality: total
Visibility: export
mktime : Tm->TimeT
  Converts a broken down time to seconds since the Epoch.

Totality: total
Visibility: export
toUTC : Tm->ClockUTC
  Converts broken down local time to a UTC clock time.

Totality: total
Visibility: export
seconds : Tm->Integer
  Keeps only the hours, seconds, and minutes of a broken down time.

Totality: total
Visibility: export
dateOnly : Tm->Tm
  Drops the hours, seconds, and minutes from a broken down time.

Totality: total
Visibility: export