The floating-point numbers in units of seconds for time interval are indicated by Tick in python.
Particular instants in time are expressed in seconds since 12:00am, January 1, 1970(epoch). And there is a popular time module available in Python which provides functions for working with times, and for converting between representations. The function time.time() returns the current system time in ticks since 12:00am, January 1, 1970(epoch). For example you can see below code.
#!/siva/bin/python
import time; # This is required to include time module.
ticks = time.time()
print "Number of ticks since 12:00am, January 1, 1970:", ticks
Output
Number of ticks since 12:00am, January 1, 1970: 7186862.73399
Note- With the help of tick module we can manage date time in python project.
0 Comment(s)