File indexing completed on 2024-04-28 15:54:00

0001 # AUTO-GENERATED FILE -- DO NOT EDIT
0002 
0003 """ This module provides various functions to manipulate time values.
0004 
0005 There are two standard representations of time.  One is the number
0006 of seconds since the Epoch, in UTC (a.k.a. GMT).  It may be an integer
0007 or a floating point number (to represent fractions of seconds).
0008 The Epoch is system-defined; on Unix, it is generally January 1st, 1970.
0009 The actual value can be retrieved by calling gmtime(0).
0010 
0011 The other representation is a tuple of 9 integers giving local time.
0012 The tuple items are:
0013   year (four digits, e.g. 1998)
0014   month (1-12)
0015   day (1-31)
0016   hours (0-23)
0017   minutes (0-59)
0018   seconds (0-59)
0019   weekday (0-6, Monday is 0)
0020   Julian day (day in the year, 1-366)
0021   DST (Daylight Savings Time) flag (-1, 0 or 1)
0022 If the DST flag is 0, the time is given in the regular time zone;
0023 if it is 1, the time is given in the DST time zone;
0024 if it is -1, mktime() should guess based on the date and time.
0025 
0026 Variables:
0027 
0028 timezone -- difference in seconds between UTC and local standard time
0029 altzone -- difference in  seconds between UTC and local DST time
0030 daylight -- whether local time should reflect DST
0031 tzname -- tuple of (standard time zone name, DST time zone name)
0032 
0033 Functions:
0034 
0035 time() -- return current time in seconds since the Epoch as a float
0036 clock() -- return CPU time since process start as a float
0037 sleep() -- delay for a number of seconds given as a float
0038 gmtime() -- convert seconds since Epoch to UTC tuple
0039 localtime() -- convert seconds since Epoch to local time tuple
0040 asctime() -- convert time tuple to string
0041 ctime() -- convert time in seconds to string
0042 mktime() -- convert local time tuple to seconds since Epoch
0043 strftime() -- convert time tuple to string according to format specification
0044 strptime() -- parse string to time tuple according to format specification
0045 tzset() -- change the local timezone """
0046 
0047 __package__ = None
0048 accept2dyear = 1
0049 altzone = -7200
0050 
0051 def asctime(tuple=None):
0052   """ asctime([tuple]) -> string
0053   
0054   Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
0055   When the time tuple is not present, current time as returned by localtime()
0056   is used. """
0057   return ""
0058 
0059 def clock():
0060   """ clock() -> floating point number
0061   
0062   Return the CPU time or real time since the start of the process or since
0063   the first call to clock().  This has as much precision as the system
0064   records. """
0065   return 1
0066 
0067 def ctime(seconds):
0068   """ ctime(seconds) -> string
0069   
0070   Convert a time in seconds since the Epoch to a string in local time.
0071   This is equivalent to asctime(localtime(seconds)). When the time tuple is
0072   not present, current time as returned by localtime() is used. """
0073   return ""
0074 
0075 daylight = 1
0076 
0077 def gmtime(seconds=None):
0078   """ gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
0079                          tm_sec, tm_wday, tm_yday, tm_isdst)
0080   
0081   Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
0082   GMT).  When 'seconds' is not passed in, convert the current time instead. """
0083   return (None, None, None, None, None, None, None, None, None)
0084 
0085 def localtime(seconds=None):
0086   """ localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,
0087                             tm_sec,tm_wday,tm_yday,tm_isdst)
0088   
0089   Convert seconds since the Epoch to a time tuple expressing local time.
0090   When 'seconds' is not passed in, convert the current time instead. """
0091   return (None, None, None, None, None, None, None, None, None)
0092 
0093 def mktime(tuple):
0094   """ mktime(tuple) -> floating point number
0095   
0096   Convert a time tuple in local time to seconds since the Epoch. """
0097   return 1
0098 
0099 def sleep(seconds):
0100   """ sleep(seconds)
0101   
0102   Delay execution for a given number of seconds.  The argument may be
0103   a floating point number for subsecond precision. """
0104   pass
0105 
0106 def strftime(format, tuple=None):
0107   """ strftime(format[, tuple]) -> string
0108   
0109   Convert a time tuple to a string according to a format specification.
0110   See the library reference manual for formatting codes. When the time tuple
0111   is not present, current time as returned by localtime() is used. """
0112   return ""
0113 
0114 def strptime(string, format):
0115   """ strptime(string, format) -> struct_time
0116   
0117   Parse a string to a time tuple according to a format specification.
0118   See the library reference manual for formatting codes (same as strftime()). """
0119   return ""
0120 
0121 class struct_time(object):
0122   """ The time value as returned by gmtime(), localtime(), and strptime(), and
0123    accepted by asctime(), mktime() and strftime().  May be considered as a
0124    sequence of 9 integers.
0125   
0126    Note that several fields' values are not the same as those defined by
0127    the C language standard for struct tm.  For example, the value of the
0128    field tm_year is the actual year, not year - 1900.  See individual
0129    fields' descriptions for details. """
0130 
0131   n_fields = 9
0132   n_sequence_fields = 9
0133   n_unnamed_fields = 0
0134   tm_hour = None
0135   tm_isdst = None
0136   tm_mday = None
0137   tm_min = None
0138   tm_mon = None
0139   tm_sec = None
0140   tm_wday = None
0141   tm_yday = None
0142   tm_year = None
0143 
0144 def time():
0145   """ time() -> floating point number
0146   
0147   Return the current time in seconds since the Epoch.
0148   Fractions of a second may be present if the system clock provides them. """
0149   return 1
0150 
0151 timezone = -3600
0152 tzname = ()
0153 
0154 def tzset():
0155   """ tzset()
0156   
0157   Initialize, or reinitialize, the local timezone to the value stored in
0158   os.environ['TZ']. The TZ environment variable should be specified in
0159   standard Unix timezone format as documented in the tzset man page
0160   (eg. 'US/Eastern', 'Europe/Amsterdam'). Unknown timezones will silently
0161   fall back to UTC. If the TZ environment variable is not set, the local
0162   timezone is set to the systems best guess of wallclock time.
0163   Changing the TZ environment variable without calling tzset *may* change
0164   the local timezone used by methods such as localtime, but this behaviour
0165   should not be relied on. """
0166   pass
0167