Home | History | Annotate | Download | only in email

Lines Matching defs:time

25 import time
135 Optional timeval if given is a floating point time value as accepted by
136 gmtime() and localtime(), otherwise the current time is used.
140 taking daylight savings time into account.
149 timeval = time.time()
151 now = time.localtime(timeval)
153 # daylight savings time, and whether DST is in effect.
154 if time.daylight and now[-1]:
155 offset = time.altzone
157 offset = time.timezone
167 now = time.gmtime(timeval)
192 timeval = time.time()
193 utcdate = time.strftime('%Y%m%d%H%M%S', time.gmtime(timeval))