Jan-16-2017, 05:49 AM
the strftime() method has a single common documentation for the two modules (datetime and time) it is found in, but ...
Output:lt1/forums /home/forums 1> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime,time
>>> datetime.datetime.now().strftime('%f')
'754235'
>>> time.strftime('%S%f')
'26%f'
>>>
lt1/forums /home/forums 2> py2
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime,time
>>> datetime.datetime.now().strftime('%f')
'390678'
>>> time.strftime('%S%f')
'02%f'
>>>
lt1/forums /home/forums 3>
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.