MCPcopy Create free account
hub / github.com/catboost/catboost / seconds

Function seconds

util/datetime/base.h:48–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46const int DATE_BUF_LEN = 4 + 2 + 2 + 1; // [YYYYMMDD*]
47
48constexpr long seconds(const struct tm& theTm) {
49 return 60 * (60 * theTm.tm_hour + theTm.tm_min) + theTm.tm_sec;
50}
51
52void sprint_gm_date(char* buf, time_t when, long* sec = nullptr);
53bool sscan_date(const char* date, struct tm& theTm);

Callers 15

SplitFunction · 0.85
FindTransitionFunction · 0.85
InMethod · 0.85
AtMethod · 0.85
FixedTimeZoneFunction · 0.85
FixedOffsetFromNameFunction · 0.85
TimeLocalMethod · 0.85
BreakTimeMethod · 0.85
FromUnixSecondsFunction · 0.85
split_secondsFunction · 0.85
SplitFunction · 0.85
FindTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected