Converts a date to timestamp-tz.
| 1030 | |
| 1031 | // Converts a date to timestamp-tz. |
| 1032 | ISC_TIMESTAMP_TZ TimeZoneUtil::dateToTimeStampTz(const ISC_DATE& date, Callbacks* cb) |
| 1033 | { |
| 1034 | // SQL: source => TIMESTAMP WITHOUT TIME ZONE => TIMESTAMP WITH TIME ZONE |
| 1035 | |
| 1036 | ISC_TIMESTAMP_TZ tsTz; |
| 1037 | tsTz.utc_timestamp.timestamp_date = date; |
| 1038 | tsTz.utc_timestamp.timestamp_time = 0; |
| 1039 | tsTz.time_zone = cb->getSessionTimeZone(); |
| 1040 | localTimeStampToUtc(tsTz); |
| 1041 | |
| 1042 | return tsTz; |
| 1043 | } |
| 1044 | |
| 1045 | //------------------------------------- |
| 1046 |
nothing calls this directly
no test coverage detected