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

Method ToInstant

util/datetime/parser.h:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 TInstant ToInstant(TInstant defaultValue) const {
84 time_t tt = ToTimeT(-1);
85 if (tt == -1) {
86 return defaultValue;
87 }
88 return TInstant::Seconds(tt) + TDuration::MicroSeconds(MicroSecond);
89 }
90
91 time_t ToTimeT(time_t defaultValue) const {
92 if (!IsOk()) {

Callers 2

GetResultMethod · 0.45
GetResultMethod · 0.45

Calls 3

MicroSecondsFunction · 0.85
ToTimeTFunction · 0.50
SecondsFunction · 0.50

Tested by

no test coverage detected