DA.Time
DA.Time
This module provides a set of functions to manipulate Time values.
The Time type represents a specific datetime in UTC,
for example time (date 2007 Apr 5) 14 30 05.
The bounds for Time are 0001-01-01T00:00:00.000000Z and
9999-12-31T23:59:59.999999Z.
Data Types
data RelTime
Functions
time: Date -> Int -> Int -> Int -> Time
time d h m s turns given UTC date d and the UTC time (given in hours, minutes, seconds)
into a UTC timestamp (Time). Does not handle leap seconds.
Adjusts Time with given time offset.
Returns time offset between two given instants.
wholeDaysReturns the number of whole days in a time offset. Fraction of time is rounded towards zero.
daysA number of days in relative time.
hoursA number of hours in relative time.
minutesA number of minutes in relative time.
secondsA number of seconds in relative time.
millisecondsA number of milliseconds in relative time.
microsecondsA number of microseconds in relative time.
convertRelTimeToMicrosecondsConvert RelTime to microseconds Use higher level functions instead of the internal microseconds
convertMicrosecondsToRelTimeConvert microseconds to RelTime Use higher level functions instead of the internal microseconds
isLedgerTimeLTTrue iff the ledger time of the transaction is less than the given time.
isLedgerTimeLETrue iff the ledger time of the transaction is less than or equal to the given time.
isLedgerTimeGTTrue iff the ledger time of the transaction is greater than the given time.
isLedgerTimeGETrue iff the ledger time of the transaction is greater than or equal to the given time.