| 185 | } |
| 186 | |
| 187 | TString TInstant::ToStringUpToSeconds() const { |
| 188 | char buf[64]; |
| 189 | auto len = FormatDate8601(buf, sizeof(buf), TimeT()); |
| 190 | if (!len) { |
| 191 | ythrow yexception() << "TInstant::ToStringUpToSeconds: year does not fit into an integer"; |
| 192 | } |
| 193 | return TString(buf, len); |
| 194 | } |
| 195 | |
| 196 | TString TInstant::ToIsoStringLocal() const { |
| 197 | return ::ToString(FormatIsoLocal(*this)); |
no test coverage detected