Package org.python.modules.time
Class Time
java.lang.Object
org.python.modules.time.Time
- All Implemented Interfaces:
ClassDictInit
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PyString
asctime()
static PyString
static void
classDictInit
(PyObject dict) static double
clock()
static PyString
ctime()
static PyString
static PyTuple
gmtime()
static PyTuple
static String
locale_asctime
(PyTuple tup) static PyTuple
static PyTuple
static double
static double
Convert a time argument that may be an optional float or None value to a double.static void
sleep
(double secs) static PyString
static PyString
static PyTuple
static PyTuple
static double
time()
-
Field Details
-
__doc__
-
timezone
public static int timezone -
altzone
public static int altzone -
daylight
public static int daylight -
tzname
-
accept2dyear
public static final int accept2dyear- See Also:
-
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
classDictInit
-
time
public static double time() -
clock
public static double clock()- Returns:
- - the seconds elapsed since the first call to this function
-
mktime
-
parseTimeDoubleArg
Convert a time argument that may be an optional float or None value to a double. Throws a TypeError on failure.- Parameters:
arg
- a PyObject number of None- Returns:
- a double value
-
localtime
-
localtime
-
gmtime
-
gmtime
-
ctime
-
ctime
-
asctime
-
asctime
-
locale_asctime
-
sleep
public static void sleep(double secs) -
strftime
-
strftime
-
strptime
-
strptime
-