lundi 29 avril 2019

trying to get current time in millisecond - and i get wrong year

trying to get current time in millisecond - and i get wrong year. I get all the time and data right - but the year is always 1650 (!)

   std::chrono::time_point<std::chrono::system_clock> now = std::chrono::system_clock::now();

   long long nowDateWithTime = now.time_since_epoch().count();

Aucun commentaire:

Enregistrer un commentaire