Date and time handling.
type t
=
{
}
Date and time type.
compare d1 d2
returns 0
if d1
is the same date and time as d2
, a
negative integer if d1
is before d2
, and a positive integer if d1
is after d2
.
The usual six comparison operators (to benefit from local open,
i.e. write Gammu.DateTime.(d1 < d2)
instead of
Gammu.DateTime.compare d1 d2 < 0
.
val check_date : t ‑> bool
Checks whether date is valid. This does not check time, see check_time
for this.
val check_time : t ‑> bool
Checks whether time is valid. This does not check date, see check_date
for this.
val os_date_time : ?timezone:bool ‑> t ‑> string
Converts timestamp to string according to OS settings.