Please let me know best way to handle date, datetime types in C++ / EOS.
Thanks,
Please let me know best way to handle date, datetime types in C++ / EOS.
Thanks,
Good question. I’ve never used it personally. But it looks like you can use time_point_sec from the system contract in order to keep track of time. I would point you to the dice.cpp file in their github to see how it can be used. https://github.com/EOSIO/eos/blob/master/contracts/dice/dice.cpp
Thanks Filip for the info. As I am using 3.0, couldn’t find time.hpp. Seems this is introduced in Dawn 4.0. FYI…
Thanks,