| 259 | } |
| 260 | |
| 261 | void TimestampValue::ToString(string& dst) const { |
| 262 | dst.resize(SimpleDateFormatTokenizer::DEFAULT_DATE_TIME_FMT_LEN); |
| 263 | const int out_len = TimestampParser::FormatDefault(date(), time(), dst.data()); |
| 264 | if (UNLIKELY(out_len != SimpleDateFormatTokenizer::DEFAULT_DATE_TIME_FMT_LEN)) { |
| 265 | if (UNLIKELY(out_len < 0)) { |
| 266 | dst.clear(); |
| 267 | } else { |
| 268 | dst.resize(out_len); |
| 269 | } |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | string TimestampValue::ToString() const { |
| 274 | string dst; |