#!/usr/bin/env python
# coding: utf-8
# In[1]:
import time as t
# In[2]:
now = t.time()
now
# In[3]:
gmt= t.gmtime(now)
# In[4]:
gmt
# In[5]:
t.strftime("The date is : %y-%m-%d",gmt)
# In[6]:
t.strftime("The date is : %b %d, %y",gmt)
# In[13]:
t.strftime("The time is : %H:%M:%S",gmt)
# In[14]:
t.strftime("It is now %I %M%p",gmt)
# In[15]:
t.strftime("The local time format is: %X", gmt)
# In[16]:
t.strftime("The local date format is: %x", gmt)
# In[ ]:
0 Comments:
Post a Comment