| 75 | |
| 76 | template <class TIME> |
| 77 | StringVal TimestampFunctions::FromUnix(FunctionContext* context, const TIME& intp) { |
| 78 | if (intp.is_null) return StringVal::null(); |
| 79 | const TimestampValue tv = TimestampValue::FromUnixTime(intp.val, |
| 80 | context->impl()->state()->time_zone_for_unix_time_conversions()); |
| 81 | return tv.ToStringVal(context); |
| 82 | } |
| 83 | |
| 84 | template <class TIME> |
| 85 | StringVal TimestampFunctions::FromUnix(FunctionContext* context, const TIME& intp, |
nothing calls this directly
no test coverage detected