12 #include "simpletools.h" 16 datetime dt = {2015, 10, 23, 9, 36, 27};
42 if(states & 0b0100000)
void dt_toTimeStr(datetime dt, char *s)
Populates a string (minimum 9 characters) with the hh:mm:ss representation of a datetime type's time...
datetime dt_get()
Get the current system time. To find the current system time (as a datetime type), call this function. Note: This assumes that a call to dt_run has been made. This is common near the beginning of a program that uses the system timekeeping.
void dt_run(datetime dt)
Run a date/time second counting process in another cog. Example: datetime dts = {2015, 9, 25, 8, 11, 04}; dt_run(dts);.
int dt_toEt(datetime dt)
Get the Unix epoch time (number of seconds from Midnight, 1/1/1970) from a datetime type...
< 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.
void dt_toDateStr(datetime dt, char *s)
Populates a string (minimum 9 characters) with the mm/dd/yy representation of a datetime type's date...
#define OFF
OFF can be used in place of zero to enabled parameters in functions like drive_feedback and drive_tri...