Skip to content
Permalink
1cc8bfe294
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (17 sloc) 649 Bytes
def time():
import time
now = time.strftime("%c")
now=print("Tell me the Date,Time and Timezone")
## date and time representation
print ("Current date & time " + time.strftime("%c"))
## Only date representation
print ("Current date " + time.strftime("%x"))
## Only time representation
print ("Current time " + time.strftime("%X"))
## Display current date and time from now variable
print("Current time %s" % now )
##display the minutes
print("current minutes\n"+time.strftime("%M"))
##display the time zone
print("current time zone is"+time.strftime("%Z"))
time()