Add missing methods to Python Date/Time/Delta objects
In the mtime
Python module, methods to query the underlying fields like year
, month
etc. from the container classes was missing (except for an items
method in TimeDelta
)
- all classes now expose the fields defined by the
ctypes
binding - the
test_python
script has been extended/re-structured to allow for the large number of new test cases - during testing a mismatch between the C struct and the binding for
TimeDelta
was found and fixed. The missing field had shadowed thesign
field. - in my understanding, the missing
TimeDelta
fieldflag_std_form
is for internal use, so it is mapped to_flag_std_form
and suppressed in theitems()
iterator