Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Getting formatted time in python ?

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 317
    Comment on it

    If you want to getting formatted time then we can format any time as per your requirement, but simple method to get time in readable format is asctime() and for example you can see below code

    #!/shiva/bin/python
    import time;
    localtime = time.asctime( time.localtime(time.time()) )
    print "Local current time :", localtime

    And output will be-
    Local current time : Tue Jan 13 10:17:09 2009
    Note- With the help of time module we can manage time formate.

 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: