4 Combined Date and Time
The datetime struct represents the combination of a date and a time; that is, it represents a date at a particular time-of-day. However, it does not include time zone information, so it does not represent an absolute moment in time.
procedure
(datetime year [ month day hour minute second nanosecond]) → datetime? year : exact-integer? month : (integer-in 1 12) = 1 day : (day-of-month/c year month) = 1 hour : (integer-in 0 23) = 0 minute : (integer-in 0 59) = 0 second : (integer-in 0 59) = 0 nanosecond : (integer-in 0 999999999) = 0
Examples: | ||||
|
procedure
(jd->datetime jd) → datetime?
jd : real?
Examples: | ||||
|
procedure
(posix->datetime posix) → datetime?
posix : real?
Examples: | ||||
|
procedure
(datetime->iso8601 dt) → string?
dt : datetime?
Examples: | ||||||
|
procedure
(datetime=? x y) → boolean?
x : datetime? y : datetime?
procedure
(datetime<? x y) → boolean?
x : datetime? y : datetime?
procedure
(datetime<=? x y) → boolean?
x : datetime? y : datetime?
procedure
(datetime>? x y) → boolean?
x : datetime? y : datetime?
procedure
(datetime>=? x y) → boolean?
x : datetime? y : datetime?
Examples: | ||||||
|
value
Examples: | ||||||||
|