diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/sys/time.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/sys/time.c b/common/sys/time.c index 7a3768c1..3031d445 100644 --- a/common/sys/time.c +++ b/common/sys/time.c @@ -79,6 +79,20 @@ Cdatedate(const time4_t * clock) } /** + * 5+1 bytes, "12/31\0" + */ +const char* +Cdate_md(const time4_t * clock) +{ + time_t temp = (time_t)*clock; + struct tm mytm; + + localtime_r(&temp, &mytm); + strftime(cdate_buffer, sizeof(cdate_buffer), "%m/%d", &mytm); + return cdate_buffer; +} + +/** * 11+1 bytes, "12/31 10:01\0" */ const char* |