In [1]:
import time
import datetime
import datetime
start = datetime.datetime.now()
i =0
while i < 90000:
i = i + 1
end = datetime.datetime.now()
print(end - start)
In [2]:
import time
import datetime
import datetime
start = datetime.datetime.now()
i =0
while i < 90000:
i = i + 1
end = datetime.datetime.now()
print(end - start)
In [3]:
import time
import datetime
import datetime
start = datetime.datetime.now()
i =0
while i < 99000000:
i = i + 1
end = datetime.datetime.now()
print(end - start)
In [4]:
import time
import datetime
import datetime
start = datetime.datetime.now()
print start
In [5]:
import time
import datetime
import datetime
start = datetime.datetime.now()
print start
In [1]:
import time
import datetime
import datetime
start =datetime.datetime.now().strftime("%A, %d. %B %Y %I:%M%p")
print start
In [2]:
import time
import datetime
start =datetime.datetime.now().strftime('%Y-%m-%d %X')
print start
In [6]:
import time
import datetime
start =datetime.datetime.now().strftime("%d,%m,%y, %X")
print start
In [8]:
import time
import datetime
start =datetime.datetime.now().strftime ("%Y,%m,%d,%H,%M")
print start
In [9]:
import time
import datetime
start =datetime.datetime.now().strftime ("%Y,%m,%d,%H:%M")
print start
In [10]:
import time
import datetime
start =datetime.datetime.now().strftime ("%Y-%m-%d,%H:%M")
print start
In [11]:
import time
import datetime
start =datetime.datetime.now().strftime ("%A,%Y-%m-%d,%H:%M")
print start
In [12]:
import time
import datetime
start =datetime.datetime.now().strftime ("%A,%Y-%m-%d,%H:%M%p")
print start
# %p
In [13]:
import time
import datetime
start =datetime.datetime.now().strftime ("%A,%Y-%m-%d,%H:%M%P")
print start
# %P
In [ ]:
No comments:
Post a Comment