Lines Matching defs:time
4 LocaleTime -- Discovers and stores locale-specific time information
6 time information
10 strptime -- Calculates the time struct represented by the passed-in string
13 import time
31 """Stores and handles locale-specific information related to time.
41 LC_date_time -- format string for date/time representation (string)
43 LC_time -- format string for time representation (string)
77 if time.tzname != self.tzname or time.daylight != self.daylight:
96 # Set self.am_pm by using time.strftime().
103 time_tuple = time.struct_time((1999,3,17,hour,44,55,2,76,0))
104 am_pm.append(time.strftime("%p", time_tuple).lower())
108 # Set self.date_time, self.date, & self.time by using
109 # time.strftime().
115 time_tuple = time.struct_time((1999,3,17,22,44,55,2,76,0))
117 date_time[0] = time.strftime("%c", time_tuple).lower()
118 date_time[1] = time.strftime("%x", time_tuple).lower()
119 date_time[2] = time.strftime("%X", time_tuple).lower()
142 time_tuple = time.struct_time((1999,1,3,1,1,1,6,3,0))
143 if '00' in time.strftime(directive, time_tuple):
153 # Set self.timezone by using time.tzname.
154 # Do not worry about possibility of time.tzname[0] == time.tzname[1]
155 # and time.daylight; handle that in strptime.
157 time.tzset()
160 self.tzname = time.tzname
161 self.daylight = time.daylight
310 """Return a 2-tuple consisting of a time struct and an int containing
323 time.tzname != locale_time.tzname or
324 time.daylight != locale_time.daylight):
349 raise ValueError("time data %r does not match format %r" %
478 # same and yet time.daylight is true; too ambiguous to
480 if (time.tzname[0] == time.tzname[1] and
481 time.daylight and found_zone not in ("utc", "gmt")):
560 """Return a time struct based on the input string and the
563 return time.struct_time(tt[:time._STRUCT_TM_ITEMS])