Functions | |
char * | xsh_get_datetime_iso8601 (void) |
Returns the current date and time as a static string. |
This module contains various utilities to get the current date/time, and possibly format it according to the ISO 8601 format.
char* xsh_get_datetime_iso8601 | ( | void | ) |
Returns the current date and time as a static string.
Build and return a string containing the date of today and the current time in ISO8601 format. The returned pointer points to a statically allocated string in the function, so no need to free it.
Definition at line 118 of file xsh_time.c.
References GET_CCYEAR, GET_DAY, GET_HOUR, GET_MINUTE, GET_MONTH, GET_SECOND, xsh_date_now(), and xsh_time_now().