POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel

Dependencies:   mbed vt100

Revision:
8:5590f55bdf41
Parent:
0:f0de320e23ac
--- a/edge_utils/edge_time.cpp	Thu Dec 07 01:06:46 2017 +0000
+++ b/edge_utils/edge_time.cpp	Thu Dec 07 10:13:13 2017 +0000
@@ -151,6 +151,18 @@
 
 void print_date(struct tm *tm) 
 {
+    printf("%d/%d/%d %02d:%02d:%02d",
+        tm->tm_year,
+        tm->tm_mon + 1,
+        tm->tm_mday,
+        tm->tm_hour,
+        tm->tm_min,
+        tm->tm_sec
+        ) ;
+}
+
+void print_date_wd(struct tm *tm) 
+{
     printf("%d/%d/%d %02d:%02d:%02d (%s)",
         tm->tm_year,
         tm->tm_mon + 1,
@@ -188,6 +200,20 @@
     return(result) ;
 }
 
+void time2seq(uint32_t timestamp, char *timestr) 
+{
+    struct tm timestruct ;
+    ts2tm(timestamp, &timestruct) ;
+    sprintf(timestr, "%d%02d%02d%02d%02d%02d",
+        timestruct.tm_year,
+        timestruct.tm_mon + 1,
+        timestruct.tm_mday,
+        timestruct.tm_hour,
+        timestruct.tm_min,
+        timestruct.tm_sec
+    ) ;
+}
+
 void time2date(struct tm *tm, char *datestr)
 {
     sprintf(datestr, "%d/%d/%d %02d:%02d:%02d (%s)",