Mercurial > minori
comparison src/core/time.cc @ 319:d928ec7b6a0d
services/kitsu: implement GetAnimeList()
it finally works!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 17:52:26 -0400 |
parents | da2c5a8ff306 |
children |
comparison
equal
deleted
inserted
replaced
318:3b355fa948c7 | 319:d928ec7b6a0d |
---|---|
96 | 96 |
97 Timestamp GetSystemTime() { | 97 Timestamp GetSystemTime() { |
98 return QDateTime::currentDateTime().toUTC().toSecsSinceEpoch(); | 98 return QDateTime::currentDateTime().toUTC().toSecsSinceEpoch(); |
99 } | 99 } |
100 | 100 |
101 Timestamp ParseISO8601Time(const std::string& str) { | |
102 return QDateTime::fromString(Strings::ToQString(str), Qt::ISODateWithMs).toUTC().toSecsSinceEpoch(); | |
103 } | |
104 | |
101 } // namespace Time | 105 } // namespace Time |