mardi 11 avril 2023

how to find date for previous day in c++? [duplicate]

I was using std::time_t t = std::time(0) for current time, however i also need the previous day date. I don't want to use the approach where we get the current time and then convert it to previous day using basic year/month/day logic.

Aucun commentaire:

Enregistrer un commentaire