Converts a time to time-tz.
| 933 | |
| 934 | // Converts a time to time-tz. |
| 935 | ISC_TIME_TZ TimeZoneUtil::timeToTimeTz(const ISC_TIME& time, Callbacks* cb) |
| 936 | { |
| 937 | ISC_TIMESTAMP_TZ tsTz; |
| 938 | tsTz.time_zone = cb->getSessionTimeZone(); |
| 939 | tsTz.utc_timestamp.timestamp_date = TIME_TZ_BASE_DATE; |
| 940 | tsTz.utc_timestamp.timestamp_time = time; |
| 941 | |
| 942 | localTimeStampToUtc(tsTz); |
| 943 | |
| 944 | ISC_TIME_TZ timeTz; |
| 945 | timeTz.time_zone = tsTz.time_zone; |
| 946 | timeTz.utc_time = tsTz.utc_timestamp.timestamp_time; |
| 947 | |
| 948 | return timeTz; |
| 949 | } |
| 950 | |
| 951 | // Converts a time-tz to timestamp-tz. |
| 952 | ISC_TIMESTAMP_TZ TimeZoneUtil::timeTzToTimeStampTz(const ISC_TIME_TZ& timeTz, Callbacks* cb) |
nothing calls this directly
no test coverage detected