Return a date instance based on the input string and the format string.
(cls, data_string, format="%a %b %d %Y")
| 784 | return time.struct_time(tt[:time._STRUCT_TM_ITEMS]) |
| 785 | |
| 786 | def _strptime_datetime_date(cls, data_string, format="%a %b %d %Y"): |
| 787 | """Return a date instance based on the input string and the |
| 788 | format string.""" |
| 789 | tt, _, _ = _strptime(data_string, format) |
| 790 | args = tt[:3] |
| 791 | return cls(*args) |
| 792 | |
| 793 | def _parse_tz(tzname, gmtoff, gmtoff_fraction): |
| 794 | tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction) |