| 55 | } |
| 56 | |
| 57 | std::string UnixTime::toString(const char* fmt) const { |
| 58 | struct tm tm; |
| 59 | time_t tt = utc_micros_ / 1000000; |
| 60 | gmtime_r(&tt, &tm); // FIXPAUL |
| 61 | |
| 62 | char buf[256]; // FIXPAUL |
| 63 | buf[0] = 0; |
| 64 | strftime(buf, sizeof(buf), fmt, &tm); |
| 65 | |
| 66 | return std::string(buf); |
| 67 | } |
| 68 | |
| 69 | Option<UnixTime> UnixTime::parseString( |
| 70 | const String& str, |
nothing calls this directly
no outgoing calls
no test coverage detected