Time and date
A Python program can handle date & time in several ways. Converting between date formats is a common chore for computers. Python’s time and calendar modules help track dates and times.
What is Tick?
Time intervals are floating-point numbers in units of seconds. Particular instants in time are expressed in seconds since 12:00am
Example:
#!/usr/bin/python
Import time; #This is required to include time module.
ticks = time.time()
print “Number of ticks since 12:00 am, January 1, 1970 :”, ticks
This would produce a result something as follows :
Number of ticks since 12:00 am, January 1, 1970: 7186862.73399