I have a unix time_t , is there any easy way to convert this to a time_t so it:
Something like this:
time_t t = time(NULL);
t -= (t % 86400);
The constant 86400 = 24 * 60 * 60 - a useful number to remember, I think... ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With