I have a simple Python program that collect data from a sensor. The program will then send the data together with the system's timestamp to a remote server via REST POST request.
If the POST request fail, the data together with the timestamp will be saved into a CSV file. Once Internet connection is available again, data on the CSV file will be sent to the remote server.
On the remote server, I have a simple PHP app that will generate a graph from the collected data.
My question: is Unix timestamp incremental and unique? Is it safe to sort the timestamp in ascending order to see the sequence of data collected?