X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FDate.cc;h=b00d8a78270494c71a11deb229a9b7521787072f;hb=5e4bcec460603b9755094ddc1fe8408fdba11eb6;hp=8327d1513924a17afd33fd1a038d57b2aefbc73a;hpb=21d3705e57368912ca54dc818258a922c9b781af;p=lib1wire.git diff --git a/src/Date.cc b/src/Date.cc index 8327d15..b00d8a7 100644 --- a/src/Date.cc +++ b/src/Date.cc @@ -11,6 +11,8 @@ #include #include +#include + #include "Date.hh" using namespace std; @@ -62,7 +64,7 @@ bool Date::is_leap_year() { } void Date::printout() { - cout << "date: " << year << " " << month << " " << day << " " << hour << " " << min << " " << sec << endl; + log_debug("%d-%02d-%02d %02d:%02d:%02d\n", year, month, day, hour, min, sec); } Date *Date::clone() {