# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ 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 (including century, 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. """ CLOCK_MONOTONIC = 6 CLOCK_MONOTONIC_RAW = 4 CLOCK_PROCESS_CPUTIME_ID = 12 CLOCK_REALTIME = 0 CLOCK_THREAD_CPUTIME_ID = 16 CLOCK_UPTIME_RAW = 8 _STRUCT_TM_ITEMS = 11 __doc__ = """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 (including century, 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. """ class __loader__(object): """ Meta path import for built-in modules. All methods are either class or static methods to avoid the need to instantiate the class. """ def create_module(self, spec): """ Create a built-in module """ pass def exec_module(self, module): """ Exec a built-in module """ pass def find_module(self, fullname, path=None): """ Find the built-in module. If 'path' is ever specified then the search is considered a failure. This method is deprecated. Use find_spec() instead. """ pass def find_spec(self, fullname, path=None, target=None): pass def get_code(self, fullname): """ Return None as built-in modules do not have code objects. """ pass def get_source(self, fullname): """ Return None as built-in modules do not have source code. """ pass def is_package(self, fullname): """ Return False as built-in modules are never packages. """ pass def load_module(self, fullname): """ Load the specified module into sys.modules and return it. This method is deprecated. Use loader.exec_module instead. """ pass def module_repr(self, module): """ Return repr for the module. The method is deprecated. The import machinery does the job itself. """ pass __name__ = 'time' __package__ = '' __spec__ = None altzone = 14400 def asctime(tuple=None): """ asctime([tuple]) -> string Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'. When the time tuple is not present, current time as returned by localtime() is used. """ return "" def clock_getres(clk_id): """ clock_getres(clk_id) -> floating point number Return the resolution (precision) of the specified clock clk_id. """ return 1 def clock_gettime(clk_id): """ clock_gettime(clk_id) -> float Return the time of the specified clock clk_id. """ return 1.0 def clock_gettime_ns(clk_id): """ clock_gettime_ns(clk_id) -> int Return the time of the specified clock clk_id as nanoseconds. """ return 1 def clock_settime(clk_id, time): """ clock_settime(clk_id, time) Set the time of the specified clock clk_id. """ pass def clock_settime_ns(clk_id, time): """ clock_settime_ns(clk_id, time) Set the time of the specified clock clk_id with nanoseconds. """ pass def ctime(seconds): """ ctime(seconds) -> string Convert a time in seconds since the Epoch to a string in local time. This is equivalent to asctime(localtime(seconds)). When the time tuple is not present, current time as returned by localtime() is used. """ return "" daylight = 1 def get_clock_info(arg0): """ get_clock_info(name: str) -> dict Get information of the specified clock. """ return {} def gmtime(seconds=None): """ gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min, tm_sec, tm_wday, tm_yday, tm_isdst) Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a. GMT). When 'seconds' is not passed in, convert the current time instead. If the platform supports the tm_gmtoff and tm_zone, they are available as attributes only. """ return (None, None, None, None, None, None, None, None, None) def localtime(seconds=None): """ localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min, tm_sec,tm_wday,tm_yday,tm_isdst) Convert seconds since the Epoch to a time tuple expressing local time. When 'seconds' is not passed in, convert the current time instead. """ return (None, None, None, None, None, None, None, None, None) def mktime(tuple): """ mktime(tuple) -> floating point number Convert a time tuple in local time to seconds since the Epoch. Note that mktime(gmtime(0)) will not generally return zero for most time zones; instead the returned value will either be equal to that of the timezone or altzone attributes on the time module. """ return 1 def monotonic(): """ monotonic() -> float Monotonic clock, cannot go backward. """ return 1.0 def monotonic_ns(): """ monotonic_ns() -> int Monotonic clock, cannot go backward, as nanoseconds. """ return 1 def perf_counter(): """ perf_counter() -> float Performance counter for benchmarking. """ return 1.0 def perf_counter_ns(): """ perf_counter_ns() -> int Performance counter for benchmarking as nanoseconds. """ return 1 def process_time(): """ process_time() -> float Process time for profiling: sum of the kernel and user-space CPU time. """ return 1.0 def process_time_ns(): """ process_time() -> int Process time for profiling as nanoseconds: sum of the kernel and user-space CPU time. """ return 1 def sleep(seconds): """ sleep(seconds) Delay execution for a given number of seconds. The argument may be a floating point number for subsecond precision. """ pass def strftime(format, tuple=None): """ strftime(format[, tuple]) -> string Convert a time tuple to a string according to a format specification. See the library reference manual for formatting codes. When the time tuple is not present, current time as returned by localtime() is used. Commonly used format codes: %Y Year with century as a decimal number. %m Month as a decimal number [01,12]. %d Day of the month as a decimal number [01,31]. %H Hour (24-hour clock) as a decimal number [00,23]. %M Minute as a decimal number [00,59]. %S Second as a decimal number [00,61]. %z Time zone offset from UTC. %a Locale's abbreviated weekday name. %A Locale's full weekday name. %b Locale's abbreviated month name. %B Locale's full month name. %c Locale's appropriate date and time representation. %I Hour (12-hour clock) as a decimal number [01,12]. %p Locale's equivalent of either AM or PM. Other codes may be available on your platform. See documentation for the C library strftime function. """ return "" def strptime(string, format): """ strptime(string, format) -> struct_time Parse a string to a time tuple according to a format specification. See the library reference manual for formatting codes (same as strftime()). Commonly used format codes: %Y Year with century as a decimal number. %m Month as a decimal number [01,12]. %d Day of the month as a decimal number [01,31]. %H Hour (24-hour clock) as a decimal number [00,23]. %M Minute as a decimal number [00,59]. %S Second as a decimal number [00,61]. %z Time zone offset from UTC. %a Locale's abbreviated weekday name. %A Locale's full weekday name. %b Locale's abbreviated month name. %B Locale's full month name. %c Locale's appropriate date and time representation. %I Hour (12-hour clock) as a decimal number [01,12]. %p Locale's equivalent of either AM or PM. Other codes may be available on your platform. See documentation for the C library strftime function. """ return "" class struct_time(tuple): """ The time value as returned by gmtime(), localtime(), and strptime(), and accepted by asctime(), mktime() and strftime(). May be considered as a sequence of 9 integers. Note that several fields' values are not the same as those defined by the C language standard for struct tm. For example, the value of the field tm_year is the actual year, not year - 1900. See individual fields' descriptions for details. """ n_fields = 11 n_sequence_fields = 9 n_unnamed_fields = 0 tm_gmtoff = None tm_hour = None tm_isdst = None tm_mday = None tm_min = None tm_mon = None tm_sec = None tm_wday = None tm_yday = None tm_year = None tm_zone = None def thread_time(): """ thread_time() -> float Thread time for profiling: sum of the kernel and user-space CPU time. """ return 1.0 def thread_time_ns(): """ thread_time() -> int Thread time for profiling as nanoseconds: sum of the kernel and user-space CPU time. """ return 1 def time(): """ time() -> floating point number Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them. """ return 1 def time_ns(): """ time_ns() -> int Return the current time in nanoseconds since the Epoch. """ return 1 timezone = 18000 tzname = () def tzset(): """ tzset() Initialize, or reinitialize, the local timezone to the value stored in os.environ['TZ']. The TZ environment variable should be specified in standard Unix timezone format as documented in the tzset man page (eg. 'US/Eastern', 'Europe/Amsterdam'). Unknown timezones will silently fall back to UTC. If the TZ environment variable is not set, the local timezone is set to the systems best guess of wallclock time. Changing the TZ environment variable without calling tzset *may* change the local timezone used by methods such as localtime, but this behaviour should not be relied on. """ pass