Contents

Example of generating Unix time

 

The following is an example of how to calculate the time in seconds since the Unix epoch (in UTC), using Python:

 


import time
timestamp = int(time.time())

 

The output should be in the format of a decimal integer, max 17 in length.

Resource for further information on Unix time: https://en.wikipedia.org/wiki/Unix_time