Lines Matching refs:localtime
126 def formatdate(timeval=None, localtime=False, usegmt=False):
132 gmtime() and localtime(), otherwise the current time is used.
134 Optional localtime is a flag that when True, interprets timeval, and
140 is needed for HTTP, and is only used when localtime==False.
146 if localtime or usegmt:
150 if localtime:
329 # datetime doesn't provide a localtime function yet, so provide one. Code
334 def localtime(dt=None, isdst=-1):
341 In this case, a positive or zero value for *isdst* causes localtime to
344 negative value for *isdst* causes the localtime() function to attempt
352 # We have a naive datetime. Convert to a (localtime) timetuple and pass to
357 localtm = time.localtime(seconds)