Lines Matching defs:time
27 import time
131 Optional timeval if given is a floating point time value as accepted by
132 gmtime() and localtime(), otherwise the current time is used.
136 taking daylight savings time into account.
145 timeval = time.time()
184 timeval = int(time.time()*100)
335 """Return local time as an aware datetime object.
337 If called without arguments, return current time. Otherwise *dt*
339 local time zone according to the system time zone database. If *dt* is
340 naive (that is, dt.tzinfo is None), it is assumed to be in local time.
342 presume initially that summer time (for example, Daylight Saving Time)
343 is or is not (respectively) in effect for the specified time. A
345 to divine whether summer time is in effect for the specified time.
356 seconds = time.mktime(tm)
357 localtm = time.localtime(seconds)
364 delta = dt - datetime.datetime(*time.gmtime(seconds)[:6])
365 dst = time.daylight and localtm.tm_isdst > 0
366 gmtoff = -(time.altzone if dst else time.timezone)
368 tz = datetime.timezone(delta, time.tzname[dst])