Top Description Fields Constructors Methods
org.python.modules.time

public Class PyTimeTuple

extends PyTuple
Class Inheritance
Annotations
@ExposedType
name:time.struct_time
isBaseType:false
Imports
org.python.core.ArgParser, .Py, .PyList, .PyNewWrapper, .PyObject, .PyTuple, .PyType, .Visitproc, org.python.expose.ExposedGet, .ExposedMethod, .ExposedNew, .ExposedType, .MethodType

struct_time of the time module.

Field Summary

Modifier and TypeField and Description
public final int
public final int
public final int
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public PyObject
public static final PyType

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized PyObject
__eq__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PySequence.__eq__.

Equivalent to the standard Python __eq__ method.

public PyTuple
public synchronized PyObject
__ne__(PyObject
the object to compare this with.
o
)

Overrides org.python.core.PySequence.__ne__.

Equivalent to the standard Python __ne__ method.

public PyObject

Returns:

a tuple of (class, tuple)
__reduce__
()

Overrides org.python.core.PyObject.__reduce__.

Used for pickling.

public boolean
pack-priv final synchronized PyObject
pack-priv final synchronized PyObject
pack-priv final PyObject
pack-priv static PyObject
struct_time_new(PyNewWrapper wrapper, boolean init, PyType subtype, PyObject[] args, String[] keywords)

pack-priv final String
public String
toString()

Overrides org.python.core.PyTuple.toString.

Returns a string representation of the object.

public int
traverse(Visitproc visit, Object arg)

Overrides org.python.core.PyTuple.traverse.

Implements org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects.

Inherited from org.python.core.PyTuple:
__add____iter____len____mul____rmul__addaddaddAlladdAllclearcontainscontainsAllcountequalsfromIterablegetgetArraygetslicehashCodeindexindexindexindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorpyaddpyaddpygetpysetremoveremoveremoveremoveAllrepeatretainAllsetsizesubListtoArraytoArraytuple___iter__unsupportedopMessage

Field Detail

n_fieldsback to summary
public final int n_fields
Annotations
@ExposedGet
n_sequence_fieldsback to summary
public final int n_sequence_fields
Annotations
@ExposedGet
n_unnamed_fieldsback to summary
public final int n_unnamed_fields
Annotations
@ExposedGet
tm_hourback to summary
public PyObject tm_hour
Annotations
@ExposedGet
tm_isdstback to summary
public PyObject tm_isdst
Annotations
@ExposedGet
tm_mdayback to summary
public PyObject tm_mday
Annotations
@ExposedGet
tm_minback to summary
public PyObject tm_min
Annotations
@ExposedGet
tm_monback to summary
public PyObject tm_mon
Annotations
@ExposedGet
tm_secback to summary
public PyObject tm_sec
Annotations
@ExposedGet
tm_wdayback to summary
public PyObject tm_wday
Annotations
@ExposedGet
tm_ydayback to summary
public PyObject tm_yday
Annotations
@ExposedGet
tm_yearback to summary
public PyObject tm_year
Annotations
@ExposedGet
TYPEback to summary
public static final PyType TYPE

Hides org.python.core.PyTuple.TYPE.

Constructor Detail

PyTimeTupleback to summary
pack-priv PyTimeTuple(PyObject... vals)

Method Detail

__eq__back to summary
public synchronized PyObject __eq__(PyObject o)

Overrides org.python.core.PySequence.__eq__.

Doc from org.python.core.PyObject.__eq__.

Equivalent to the standard Python __eq__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

__getnewargs__back to summary
public PyTuple __getnewargs__()

Overrides org.python.core.PyTuple.__getnewargs__.

__ne__back to summary
public synchronized PyObject __ne__(PyObject o)

Overrides org.python.core.PySequence.__ne__.

Doc from org.python.core.PyObject.__ne__.

Equivalent to the standard Python __ne__ method.

Parameters
o:PyObject

the object to compare this with.

Returns:PyObject

the result of the comparison.

__reduce__back to summary
public PyObject __reduce__()

Overrides org.python.core.PyObject.__reduce__.

Used for pickling.

Returns:PyObject

a tuple of (class, tuple)

refersDirectlyToback to summary
public boolean refersDirectlyTo(PyObject ob)

Overrides org.python.core.PyTuple.refersDirectlyTo.

Implements org.python.core.Traverseproc.refersDirectlyTo.

Doc from org.python.core.Traverseproc.refersDirectlyTo.

Optional operation. Should only be implemented if it is more efficient than calling traverse(Visitproc, Object) with a visitproc that just watches out for ob. Must return false if ob is null.

Annotations
@Override
struct_time___eq__back to summary
pack-priv final synchronized PyObject struct_time___eq__(PyObject o)
Annotations
@ExposedMethod
type:BINARY
struct_time___ne__back to summary
pack-priv final synchronized PyObject struct_time___ne__(PyObject o)
Annotations
@ExposedMethod
type:BINARY
struct_time___reduce__back to summary
pack-priv final PyObject struct_time___reduce__()
Annotations
@ExposedMethod
struct_time_newback to summary
pack-priv static PyObject struct_time_new(PyNewWrapper wrapper, boolean init, PyType subtype, PyObject[] args, String[] keywords)
Annotations
@ExposedNew
struct_time_toStringback to summary
pack-priv final String struct_time_toString()
Annotations
@ExposedMethod
names:__str__, __repr__
toStringback to summary
public String toString()

Overrides org.python.core.PyTuple.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override

traverseback to summary
public int traverse(Visitproc visit, Object arg)

Overrides org.python.core.PyTuple.traverse.

Implements org.python.core.Traverseproc.traverse.

Doc from org.python.core.Traverseproc.traverse.

Traverses all directly contained PyObjects. Like in CPython, arg must be passed unmodified to visit as its second parameter. If Visitproc#visit(PyObject, Object) returns nonzero, this return value must be returned immediately by traverse. Visitproc#visit(PyObject, Object) must not be called with a null PyObject-argument.

Annotations
@Override