I am having trouble converting posix_time::ptime
to a timestamp represented by time_t
or posix_time::milliseconds
, or any other appropriate type which can be easily printed (from Epoch).
I actually need just to print the timestamp represented by the posix_time::ptime
in milliseconds, so if there is an easy way to print in that format, I don't actually need the conversion.