using standard lib date

This commit is contained in:
VaclavT 2022-01-11 00:15:36 +01:00
parent fce393d77c
commit 2679dbd021
3 changed files with 4 additions and 8325 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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 ) {
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+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+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+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;

View File

@ -1,8 +1,6 @@
#pragma once
#include "clib/date.h"
#include <ctime>
#include <string>
#include <vector>