BG_Flood  0.1
Documentation (Work-in-progress)
utctime.h
Go to the documentation of this file.
1 #ifndef UTCTIME_H
2 #define UTCTIME_H
3 
4 #include "General.h"
5 #include "ReadInput.h"
6 /*
7 struct UTCClock
8 {
9  typedef std::chrono::microseconds duration;
10  typedef duration::rep rep;
11  typedef duration::period period;
12  typedef std::chrono::time_point<UTCClock, duration> time_point;
13  static const bool is_steady = true;
14 
15  //
16  // every time_point will be generated from here
17  //
18  static time_point fromDate(int year = 0, int month = 0, int day = 0,
19  int hour = 0, int min = 0, int sec = 0,
20  int usec = 0);
21  //
22  // convert time_point to a date/time representation
23  //
24  static void toDate(const time_point& tp,
25  int& year, int& month, int& day,
26  int& hour, int& min, int& sec,
27  int& usec);
28 
29  // NOT Supported, we don't need current time. We only
30  // want to represent UTC DateTime
31  // static time_point now();
32 };
33 */
34 //using UTCTime = std::chrono::time_point<UTCClock, std::chrono::microseconds>;
35 
36 long long date_string_to_time(std::string date);
37 double date_string_to_s(std::string datetime, std::string refdate);
38 double readinputtimetxt(std::string input, std::string & refdate);
39 bool testime1(int hour);
40 bool testime2(int hour);
41 
42 #endif
double readinputtimetxt(std::string input, std::string &refdate)
Definition: utctime.cu:284
long long date_string_to_time(std::string date)
Definition: utctime.cu:181
bool testime2(int hour)
Definition: utctime.cu:361
bool testime1(int hour)
Definition: utctime.cu:312
double date_string_to_s(std::string datetime, std::string refdate)
Definition: utctime.cu:261