-rw-r--r-- | lib/hypnodata.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hypnodata.cc b/lib/hypnodata.cc index 977fb76..a64b7d7 100644 --- a/lib/hypnodata.cc +++ b/lib/hypnodata.cc @@ -1,16 +1,18 @@ +#include <stdlib.h> +#include <string.h> #include <napkin/exception.h> #include <napkin/util.h> #include <napkin/types.h> namespace napkin { void hypnodata_t::clear() { to_bed = alarm = 0; data_a = window = 0; almost_awakes.clear(); } static time_t from_minute_w3c(const string& w3c) { struct tm t; memset(&t,0,sizeof(t)); t.tm_isdst=-1; if(sscanf(w3c.c_str(),"%04d-%02d-%02dT%02d:%02d", &t.tm_year,&t.tm_mon,&t.tm_mday,&t.tm_hour,&t.tm_min)!=5) |