Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is Tick in python ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 7.32k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: