Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses PyImport_ImportModuleNoBlock PyObject_CallMethod PyArg_Parse PyDict_GetItemString PyExc_ValueError PyErr_SetString PyInt_AsLong PyArg_ParseTuple strlen strftime free malloc PyErr_NoMemory PyString_FromStringAndSize localtime PyArg_UnpackTuple asctime PyString_FromString floor PyEval_SaveThread select __errno_location PyEval_RestoreThread _Py_NoneStruct PyExc_IOError PyErr_SetFromErrno fmod clock PyFloat_FromDouble strncpy PyModule_AddIntConstant Py_BuildValue PyModule_AddObject tzset mktime PyExc_OverflowError gettimeofday _PyTime_DoubleToTimet PyFloat_AsDouble PyErr_Occurred PyStructSequence_New PyInt_FromLong gmtime inittime Py_InitModule4 Py_IgnoreEnvironmentFlag PyModule_GetDict getenv PyStructSequence_InitType _PyTime_FloatTime libm.so.6 libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0 
_strptime O _strptime_time (iiiiiiiii) accept2dyear year >= 1900 required s|O:strftime day of month out of range hour out of range minute out of range seconds out of range day of week out of range day of year out of range asctime invalid time d:sleep timezone altzone daylight (zz) tzname mktime argument out of range unconvertible time |O:localtime |O:gmtime PYTHONY2K clock mktime tzset time.struct_time tm_year year, for example, 1993 tm_mon month of year, range [1, 12] tm_mday day of month, range [1, 31] tm_hour hours, range [0, 23] tm_min minutes, range [0, 59] tm_sec seconds, range [0, 61]) tm_wday tm_yday day of year, range [1, 366] tm_isdst timestamp out of range for platform time_t 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. day of week, range [0, 6], Monday is 0 1 if summer time is in effect, 0 if not, and -1 if unknown $tI > MbP?
 1 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 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. clock() -> floating point number Return the CPU time or real time since the start of the process or since the first call to clock(). This has as much precision as the system records. sleep(seconds) Delay execution for a given number of seconds. The argument may be a floating point number for subsecond precision. 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. 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. 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. 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. mktime(tuple) -> floating point number Convert a time tuple in local time to seconds since the Epoch. 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. 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()). 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. v$ 9 $ @ 9 }$ : $ ; $ @< f$ `= h$ > % p ? # 0 ? # @ % `A % H& D "% *% B% I% f% n% % % % % % % % ' % % & ( 
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) 
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges 
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux timemodule.c time_strptime gettmarg moddict time_strftime time_asctime time_sleep time_clock inittimezone time_tzset time_mktime time_time time_ctime time_convert StructTimeType time_localtime time_gmtime module_doc time_methods initialized struct_time_type_desc time_doc clock_doc sleep_doc gmtime_doc localtime_doc asctime_doc ctime_doc mktime_doc strftime_doc strptime_doc tzset_doc struct_time_type_fields _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC fmod@@GLIBC_2.0 __errno_location@@GLIBC_2.0 PyModule_AddObject PyArg_UnpackTuple PyObject_CallMethod PyExc_ValueError ftime@@GLIBC_2.0 _PyTime_DoubleToTimet PyImport_ImportModuleNoBlock __gmon_start__ _Jv_RegisterClasses localtime@@GLIBC_2.0 getenv@@GLIBC_2.0 _fini PyErr_NoMemory strncpy@@GLIBC_2.0 tzset@@GLIBC_2.0 _PyTime_FloatTime floor@@GLIBC_2.0 PyString_FromStringAndSize PyModule_AddIntConstant PyFloat_FromDouble PyArg_ParseTuple gettimeofday@@GLIBC_2.0 PyErr_Occurred free@@GLIBC_2.0 PyEval_RestoreThread mktime@@GLIBC_2.0 PyString_FromString clock@@GLIBC_2.0 PyInt_FromLong PyEval_SaveThread strlen@@GLIBC_2.0 PyModule_GetDict PyInt_AsLong PyExc_IOError ctime@@GLIBC_2.0 select@@GLIBC_2.0 PyFloat_AsDouble PyStructSequence_InitType time@@GLIBC_2.0 Py_BuildValue __bss_start malloc@@GLIBC_2.0 _Py_NoneStruct PyStructSequence_New PyExc_OverflowError PyDict_GetItemString PyArg_Parse Py_InitModule4 _end asctime@@GLIBC_2.0 gmtime@@GLIBC_2.0 PyErr_SetString inittime Py_IgnoreEnvironmentFlag strftime@@GLIBC_2.0 _edata PyErr_SetFromErrno __cxa_finalize@@GLIBC_2.1.3 _init