I need to convert double with number of seconds since the epoch to ptime. I\'m prety sure there must be an easy way to do this, but I couldn\'t find anything. T
ptime
Use the from_time_t() conversion function. A time_t is a UNIX timestamp, i.e. the number of seconds since the epoch.
time_t