| 310 | } |
| 311 | |
| 312 | size_t FormatDate8601(char* buf, size_t len, time_t when) { |
| 313 | struct tm theTm; |
| 314 | struct tm* ret = GmTimeR(&when, &theTm); |
| 315 | |
| 316 | if (ret) { |
| 317 | TMemoryOutput out(buf, len); |
| 318 | |
| 319 | WriteTmToStream(out, theTm); |
| 320 | out << 'Z'; |
| 321 | |
| 322 | return out.Buf() - buf; |
| 323 | } |
| 324 | |
| 325 | return 0; |
| 326 | } |
| 327 | |
| 328 | void SleepUntil(TInstant instant) { |
| 329 | TInstant now = TInstant::Now(); |
no test coverage detected