Converts a timestamp to timestamp-tz.
| 1008 | |
| 1009 | // Converts a timestamp to timestamp-tz. |
| 1010 | ISC_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. |
| 1024 | ISC_TIME_TZ TimeZoneUtil::timeStampToTimeTz(const ISC_TIMESTAMP& timeStamp, Callbacks* cb) |
nothing calls this directly
no test coverage detected