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)