This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to convert date and time to timestamp?

Hi, I use IoT sdk with my iPhone to get current date and time, date comes in ble_cts_c_evt_t structure, how can I convert it to timestamp, I know that I have to subscribe Jan 1, 1970 from current date and multiple all by 84600, but maybe is there more trivial way?

Related