May-05-2017, 02:45 AM
is time.struct_time a named tuple?
Output:lt1/forums /home/forums 1> 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 time
>>> print(repr(time.gmtime()))
time.struct_time(tm_year=2017, tm_mon=5, tm_mday=5, tm_hour=2, tm_min=43, tm_sec=5, tm_wday=4, tm_yday=125, tm_isdst=0)
>>>
lt1/forums /home/forums 2> 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 time
>>> print(repr(time.gmtime()))
time.struct_time(tm_year=2017, tm_mon=5, tm_mday=5, tm_hour=2, tm_min=43, tm_sec=28, tm_wday=4, tm_yday=125, tm_isdst=0)
>>>
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.