Go to the SVN repository for this file.
44 structtimeval tv = {0, 0};
65 CTime t(time,
"Y/M/D h:m:g o");
77 t.tm_hour = time.
Hour();
78 t.tm_mday = time.
Day();
79 t.tm_mon = time.
Month() - 1;
80 t.tm_year = time.
Year() - 1900;
83time_t rv = mktime(&
t);
84time_t rv_off = rv - 3600;
86localtime_r(&rv_off, &t2);
87 if(t2.tm_hour ==
t.tm_hour)
94time_t time_sec = time / 1000L;
95time_t time_msec = time % 1000L;
101 ct->SetTimeT(time_sec);
102 ct->SetMilliSecond(time_msec);
#define BEGIN_IDBLOB_SCOPE
int64_t StringToTimeTms(const string &time)
void TimeTmsToCTime(int64_t time, CTime *ct)
string TimeTmsToString(int64_t time)
BEGIN_IDBLOB_SCOPE USING_NCBI_SCOPE
int64_t CTimeToTimeTms(const CTime &time)
int Minute(void) const
Get minute.
bool IsUniversalTime(void) const
Is time universal (GMT/UTC/Z)?
int Year(void) const
Get year.
long MilliSecond(void) const
Get milliseconds.
time_t GetTimeT(void) const
Get time in time_t format.
int Day(void) const
Get day.
int Hour(void) const
Get hour.
int Second(void) const
Get second.
int Month(void) const
Get month.
bool IsEmptyDate(void) const
Is date empty?
int gettimeofday(struct timeval *tp, void *unused)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4