8 #include "simpletools.h" 14 int date = dte_dateETV(et);
15 int time = dte_timeETV(et);
18 dt.
mo = (date >> 8) & 0xFF;
21 dt.
m = (time >> 8) & 0xFF;
< datetime_st Structure containing y, mo, h, m, and s elements.
This library provides convenient functions for a variety of timekeeping operations. This library makes use of a manual Spin to C translation of functions from Bob Belleville's date_time_epoch.spin for converting to/from between epoch time (seconds from midnight, 1/1/1970) and a datetime format.
datetime dt_fromEt(int et)
Get the datetime representation of an a Unix epoch time (number of seconds from Midnight, 1/1/1970).