All Samples(37647) | Call(10) | Derive(0) | Import(37637)
This module provides various functions to manipulate time values. There are two standard representations of time. One is the number of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer or a floating point number (to represent fractions of seconds). The Epoch is system-defined; on Unix, it is generally January 1st, 1970. The actual value can be retrieved by calling gmtime(0). The other representation is a tuple of 9 integers giving local time. The tuple items are: year (four digits, e.g. 1998) month (1-12) day (1-31) hours (0-23) minutes (0-59) seconds (0-59) weekday (0-6, Monday is 0) Julian day (day in the year, 1-366) DST (Daylight Savings Time) flag (-1, 0 or 1) If the DST flag is 0, the time is given in the regular time zone; if it is 1, the time is given in the DST time zone; if it is -1, mktime() should guess based on the date and time. Variables: timezone -- difference in seconds between UTC and local standard time altzone -- difference in seconds between UTC and local DST time daylight -- whether local time should reflect DST tzname -- tuple of (standard time zone name, DST time zone name) Functions: time() -- return current time in seconds since the Epoch as a float clock() -- return CPU time since process start as a float sleep() -- delay for a number of seconds given as a float gmtime() -- convert seconds since Epoch to UTC tuple localtime() -- convert seconds since Epoch to local time tuple asctime() -- convert time tuple to string ctime() -- convert time in seconds to string mktime() -- convert local time tuple to seconds since Epoch strftime() -- convert time tuple to string according to format specification strptime() -- parse string to time tuple according to format specification tzset() -- change the local timezone
src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Doc/PythonDocs/includes/tzinfo-examples.py ironruby(Download)
# A class capturing the platform's idea of local time. import time as _time STDOFFSET = timedelta(seconds = -_time.timezone) if _time.daylight:
src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Doc/IronPythonDocs/includes/tzinfo-examples.py ironruby(Download)
# A class capturing the platform's idea of local time. import time as _time STDOFFSET = timedelta(seconds = -_time.timezone) if _time.daylight:
src/p/y/PyProp-HEAD/examples/combined/h2_ionization/born-oppenheimer/cartesian/example.py PyProp(Download)
import sys import os import time import pylab import numpy from numpy import array, r_, double, complex, exp
from libpotential import *
import time
execfile("../common/benchmark.py")
execfile("../common/initialization.py")
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/SoC2006/THF/TorrentOpenGLGUI/TorrentOpenGLGUI.py kamaelia(Download)
import random import os import time import sys class TorrentOpenGLGUI(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent):
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/SoC2006/RJL/TorrentGUI/TorrentTkGUI.py kamaelia(Download)
to a TorrentPatron (it should be connected up to do so). """ import Tkinter, time from Kamaelia.UI.Tk.TkWindow import TkWindow from Axon.Ipc import producerFinished, shutdown
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/SoC2006/RJL/P2PStreamPeer/p2pstreampeer.py kamaelia(Download)
or so. """ import time from Axon.Component import component
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/SimpleGraphicalApps/BouncingCatGame/Sprites/SpriteScheduler.py kamaelia(Download)
import pygame pygame.init() import time from Axon.Component import component
src/k/a/kamaelia-HEAD/trunk/Sketches/CL/Topology3D/THF/Examples/TorrentOpenGLGUI/TorrentOpenGLGUI.py kamaelia(Download)
import random import os import time import sys class TorrentOpenGLGUI(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent):
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/TCP_Systems/HTTP/KamaeliaWebServer.py kamaelia(Download)
#
# Simple WSGI Handler
#
import time
def simple_app(environ, start_response):
"""Simplest possible application object"""
status = '200 OK'
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/SimpleGraphicalApps/TextBox/Source_TextDisplayer_Demo.py kamaelia(Download)
# ------------------------------------------------------------------------- # import time import Axon from Kamaelia.Chassis.Pipeline import Pipeline from Kamaelia.UI.Pygame.Text import TextDisplayer
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next