Top "Time-t" questions

`time_t` is a Standard-C data type to hold the seconds since UNIX epoch, that since the 1.1.1970.

Addition some interval to tm structs

I have one struct tm. And I need to add some fixed interval (given in xx years, xx months, xx …

c time-t ctime
How to convert a UTC date & time to a time_t in C++?

I want to convert a UTC date & time given in numbers for year, month, day, etc. to a time_…

c++ time-t
Convert double to time_t

I have a double containing seconds. I would like to convert this into a time_t. I can't find a …

c++ time standards chrono time-t
Convert MYSQL Timestamp to time_t

I'm writing a multi-threaded program that needs to be able to check if a row requires updating and act accordingly. …

c++ mysql datetime time-t
getting utc timestamp using strftime()

I am trying to encode current utc time into string using the strftimefunction: time_t now; struct tm nowLocal; struct …

c datetime glibc strftime time-t
How do I convert a Unix timestamp string to time_t in C++11?

Short question, aka "TD;DR". I have a, say, "1464478647000" string, that I guess is a UNIX timestamp. But surely it …

c++ unix c++11 time-t feedly
what is the difference between difftime and '-'?

I have 2 variables of type time_t - varEnd and varStart. Now in order to see the difference between them …

c time-t