MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / encode_timestamp

Function encode_timestamp

src/extlib/UdfBackwardCompatibility.cpp:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void encode_timestamp(IUtil* u, const tm* from, const unsigned fractions, FbTimestamp* to)
200 {
201 tm times = *from;
202
203 // decode firebird timestamp format
204 times.tm_year += 1900;
205 times.tm_mon++;
206
207 to->date.encode(u, times.tm_year, times.tm_mon, times.tm_mday);
208 to->time.encode(u, times.tm_hour, times.tm_min, times.tm_sec, fractions);
209 }
210} // anonymous namespace
211
212/***

Callers 5

timeTzToTimeStampTzMethod · 0.85
encodeMethod · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected