Try using uint64_t to store your time, and using current_time() defined in the wasm_interface.hpp to get the current time. It's worth noting that some c++ functionality may not be available within the eos context, as the blockchain need to be "replayable". Therefore some functionality has either been removed or wrapped, to ensure that the blockchain remains atomic.