teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Go to the documentation of this file.
7 typedef std::chrono::system_clock::time_point
TimePoint;
9 bool operator>(
const struct timeval& ta,
const struct timeval& tb);
const std::string & timeFormat()
Definition: time_utils.cpp:17
std::string timeToDateStr(const TimePoint &pt)
Definition: time_utils.cpp:39
int day(const TimePoint &pt)
Definition: time_utils.cpp:78
struct tm toStructTm(const TimePoint &pt)
Definition: time_utils.cpp:22
void addYear(TimePoint &pt)
Definition: time_utils.cpp:106
#define ASSERT(check, fmt,...)
Macro to assert with runtime_error exception if the check fails.
Definition: utils.h:35
std::chrono::system_clock::time_point TimePoint
Definition: time_utils.h:7
std::string timeToStr(const TimePoint &pt)
Definition: time_utils.cpp:32
void weekFor(TimePoint &start, TimePoint &end, const TimePoint &pt)
Definition: time_utils.cpp:154
int dayOfWeek(const TimePoint &pt)
Definition: time_utils.cpp:66
TimePoint toTimePoint(struct tm &tm_)
Definition: time_utils.cpp:27
void addWeek(TimePoint &pt, int times)
Definition: time_utils.cpp:92
TimePoint timeFromStr(const std::string &dt)
Definition: time_utils.cpp:50
int year(const TimePoint &pt)
Definition: time_utils.cpp:70
bool operator>(const struct timeval &ta, const struct timeval &tb)
Definition: time_utils.cpp:11
void addMonth(TimePoint &pt)
Definition: time_utils.cpp:96
void addHour(TimePoint &pt)
Definition: time_utils.cpp:86
int month(const TimePoint &pt)
Definition: time_utils.cpp:74
void addDay(TimePoint &pt, int times)
Definition: time_utils.cpp:88
void addSecond(TimePoint &pt)
Definition: time_utils.cpp:82
void addMinute(TimePoint &pt)
Definition: time_utils.cpp:84
std::string currentTimeToStr()
Definition: time_utils.cpp:46