using standard lib date
This commit is contained in:
parent
fce393d77c
commit
2679dbd021
8319
clib/date.h
8319
clib/date.h
File diff suppressed because it is too large
Load Diff
|
|
@ -33,9 +33,9 @@ std::string date_to_string(const long datetime, const std::string& format) {
|
||||||
|
|
||||||
time_t time_to_epoch ( const struct tm *ltm, int utcdiff ) {
|
time_t time_to_epoch ( const struct tm *ltm, int utcdiff ) {
|
||||||
const int mon_days [] = {0, 31, 31+28, 31+28+31,
|
const int mon_days [] = {0, 31, 31+28, 31+28+31,
|
||||||
31+28+31+30, 31+28+31+30+31, 31+28+31+30+31+30,
|
31+28+31+30, 31+28+31+30+31, 31+28+31+30+31+30,
|
||||||
31+28+31+30+31+30+31, 31+28+31+30+31+30+31+31, 31+28+31+30+31+30+31+31+30,
|
31+28+31+30+31+30+31, 31+28+31+30+31+30+31+31, 31+28+31+30+31+30+31+31+30,
|
||||||
31+28+31+30+31+30+31+31+30+31, 31+28+31+30+31+30+31+31+30+31+30, 31+28+31+30+31+30+31+31+30+31+30+31};
|
31+28+31+30+31+30+31+31+30+31, 31+28+31+30+31+30+31+31+30+31+30, 31+28+31+30+31+30+31+31+30+31+30+31};
|
||||||
|
|
||||||
long tyears, tdays, leaps, utc_hrs;
|
long tyears, tdays, leaps, utc_hrs;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue