Idris2Doc : IotaTime.Time.Component

IotaTime.Time.Component

(source)

Reexports

importpublic Data.So

Definitions

isValidHour : Integer->Bool
  Whether an integer is in the inclusive hour range 0 through 23.

Totality: total
Visibility: public export
recordHour : Type
  An hour of day constrained to the inclusive range 0 through 23.

Totality: total
Visibility: export
Constructor: 
MkHour : Integer->Hour

Projection: 
.integerValue : Hour->Integer

Hints:
EqHour
ShowHour
fromInteger : (value : Integer) -> {auto0_ : So (isValidHourvalue)} ->Hour
  Construct an hour when its range proof is available statically.

Totality: total
Visibility: public export
hourValue : Hour->Integer
  Return the integer hour of day.

Totality: total
Visibility: public export
dataHourError : Type
  A runtime hour value outside the inclusive range 0 through 23.

Totality: total
Visibility: public export
Constructor: 
HourOutOfRange : Integer->HourError
refineHour : Integer->EitherHourErrorHour
  Refine an untrusted integer into an hour or return a typed range error.

Totality: total
Visibility: public export
isValidMinute : Integer->Bool
  Whether an integer is in the inclusive minute range 0 through 59.

Totality: total
Visibility: public export
recordMinute : Type
  A minute of hour constrained to the inclusive range 0 through 59.

Totality: total
Visibility: export
Constructor: 
MkMinute : Integer->Minute

Projection: 
.integerValue : Minute->Integer

Hints:
EqMinute
ShowMinute
fromInteger : (value : Integer) -> {auto0_ : So (isValidMinutevalue)} ->Minute
  Construct a minute when its range proof is available statically.

Totality: total
Visibility: public export
minuteValue : Minute->Integer
  Return the integer minute of hour.

Totality: total
Visibility: public export
dataMinuteError : Type
  A runtime minute value outside the inclusive range 0 through 59.

Totality: total
Visibility: public export
Constructor: 
MinuteOutOfRange : Integer->MinuteError
refineMinute : Integer->EitherMinuteErrorMinute
  Refine an untrusted integer into a minute or return a typed range error.

Totality: total
Visibility: public export
isValidSecond : Integer->Bool
  Whether an integer is in the inclusive second range 0 through 59.

Totality: total
Visibility: public export
recordSecond : Type
  A second of minute constrained to the inclusive range 0 through 59.

Totality: total
Visibility: export
Constructor: 
MkSecond : Integer->Second

Projection: 
.integerValue : Second->Integer

Hints:
EqSecond
ShowSecond
fromInteger : (value : Integer) -> {auto0_ : So (isValidSecondvalue)} ->Second
  Construct a second when its range proof is available statically.

Totality: total
Visibility: public export
secondValue : Second->Integer
  Return the integer second of minute.

Totality: total
Visibility: public export
dataSecondError : Type
  A runtime second value outside the inclusive range 0 through 59.

Totality: total
Visibility: public export
Constructor: 
SecondOutOfRange : Integer->SecondError
refineSecond : Integer->EitherSecondErrorSecond
  Refine an untrusted integer into a second or return a typed range error.

Totality: total
Visibility: public export
isValidNanosecond : Integer->Bool
  Whether an integer is in the nanosecond range 0 through 999,999,999.

Totality: total
Visibility: public export
recordNanosecond : Type
  A nanosecond of second constrained to 0 through 999,999,999.

Totality: total
Visibility: export
Constructor: 
MkNanosecond : Integer->Nanosecond

Projection: 
.integerValue : Nanosecond->Integer

Hints:
EqNanosecond
ShowNanosecond
fromInteger : (value : Integer) -> {auto0_ : So (isValidNanosecondvalue)} ->Nanosecond
  Construct a nanosecond when its range proof is available statically.

Totality: total
Visibility: public export
nanosecondValue : Nanosecond->Integer
  Return the integer nanosecond of second.

Totality: total
Visibility: public export
dataNanosecondError : Type
  A runtime nanosecond value outside 0 through 999,999,999.

Totality: total
Visibility: public export
Constructor: 
NanosecondOutOfRange : Integer->NanosecondError
refineNanosecond : Integer->EitherNanosecondErrorNanosecond
  Refine an untrusted integer into a nanosecond or return a typed range error.

Totality: total
Visibility: public export