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

Method timeStampToTimeStampTz

src/common/TimeZoneUtil.cpp:1010–1021  ·  view source on GitHub ↗

Converts a timestamp to timestamp-tz.

Source from the content-addressed store, hash-verified

1008
1009// Converts a timestamp to timestamp-tz.
1010ISC_TIMESTAMP_TZ TimeZoneUtil::timeStampToTimeStampTz(const ISC_TIMESTAMP& timeStamp, Callbacks* cb)
1011{
1012 // SQL: Copy time and time zone fields from the source.
1013
1014 ISC_TIMESTAMP_TZ tsTz;
1015 tsTz.utc_timestamp = timeStamp;
1016 tsTz.time_zone = cb->getSessionTimeZone();
1017
1018 localTimeStampToUtc(tsTz);
1019
1020 return tsTz;
1021}
1022
1023// Converts a timestamp to time-tz.
1024ISC_TIME_TZ TimeZoneUtil::timeStampToTimeTz(const ISC_TIMESTAMP& timeStamp, Callbacks* cb)

Callers

nothing calls this directly

Calls 1

getSessionTimeZoneMethod · 0.45

Tested by

no test coverage detected