Home | History | Annotate | Download | only in python2.7

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
32 """Stores and handles locale-specific information related to time.
42 LC_date_time -- format string for date/time representation (string)
44 LC_time -- format string for time representation (string)
104 # Set self.am_pm by using time.strftime().
111 time_tuple = time.struct_time((1999,3,17,hour,44,55,2,76,0))
112 am_pm.append(time.strftime("%p", time_tuple).lower())
116 # Set self.date_time, self.date, & self.time by using
117 # time.strftime().
123 time_tuple = time.struct_time((1999,3,17,22,44,55,2,76,0))
125 date_time[0] = time.strftime("%c", time_tuple).lower()
126 date_time[1] = time.strftime("%x", time_tuple).lower()
127 date_time[2] = time.strftime("%X", time_tuple).lower()
150 time_tuple = time.struct_time((1999,1,3,1,1,1,6,3,0))
151 if '00' in time.strftime(directive, time_tuple):
161 # Set self.timezone by using time.tzname.
162 # Do not worry about possibility of time.tzname[0] == timetzname[1]
163 # and time.daylight; handle that in strptime .
165 time.tzset()
168 no_saving = frozenset(["utc", "gmt", time.tzname[0].lower()])
169 if time.daylight:
170 has_saving = frozenset([time.tzname[1].lower()])
296 """Return a time struct based on the input string and the format string."""
324 raise ValueError("time data %r does not match format %r" %
421 # same and yet time.daylight is true; too ambiguous to
423 if (time.tzname[0] == time.tzname[1] and
424 time.daylight and found_zone not in ("utc", "gmt")):
462 return (time.struct_time((year, month, day,