Return a date instance based on the input string and the format string.
(cls, data_string, format="%a %b %d %Y")
| 802 | return time.struct_time(tt[:time._STRUCT_TM_ITEMS]) |
| 803 | |
| 804 | def _strptime_datetime_date(cls, data_string, format="%a %b %d %Y"): |
| 805 | """Return a date instance based on the input string and the |
| 806 | format string.""" |
| 807 | tt, _, _ = _strptime(data_string, format) |
| 808 | args = tt[:3] |
| 809 | return cls(*args) |
| 810 | |
| 811 | def _parse_tz(tzname, gmtoff, gmtoff_fraction): |
| 812 | tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction) |