Those fields of time.struct_time
simply mean:
tm_wday
: the day of the week (Monday is 0)
tm_yday
: the day of the year (1st of January is 1)
tm_isdst
: whether daylight saving time (DST) is in effect (1), not in effect (0) or unknown (-1)
See the documentation for details.
The parse
method of the Calendar
class of parsedatetime
returns a tuple of 2 elements: a struct_time
and a parse status (the 1 after the comma, in your case). The status tells you whether parse
found:
0
: nothing
1
: a date
2
: a time
3
: a datetime
See the documentation for details.
Well, OK, the documentation is somewhat incomplete, so I had to find out the rest. Here it is:
Calendar.parse()
has an optional second parameter, a struct_time
which
it calls sourceTime
, that is used as a starting point for the returned
struct_time
. If the sourceTime
is not provided, it is constructed from the time of the call.
The “funny” part is, only some fields of the sourceTime
are changed by
the parse
method, and which fields are changed depends on the parse status. And, most confusingly, tm_wday
, tm_yday
, tm_isdst
are never
changed!
If the parse status is
0
, no field is changed
1
, only tm_year
, tm_mon
and tm_mday
are changed
2
, only tm_hour
, tm_min
and tm_sec
are changed
3
, only tm_year
, tm_mon
, tm_mday
, tm_hour
, tm_min
and tm_sec
are changed
So by your output, I can see that you made the call on Saturday January 11 at 1:41:47 pm.