Class PythonTime
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.datetime.PythonTime
- All Implemented Interfaces:
PythonLikeObject,PlanningImmutable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic PythonLikeTypefinal PythonIntegerfinal PythonIntegerfinal PythonIntegerfinal PythonIntegerfinal PythonIntegerstatic PythonLikeTypefinal PythonLikeObjectFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionPythonTime(LocalTime localTime) PythonTime(LocalTime localTime, ZoneId zoneId) PythonTime(LocalTime localTime, ZoneId zoneId, int fold) -
Method Summary
Modifier and TypeMethodDescription$getAttributeOrNull(String name) Gets an attribute by name.dst()static PythonTimefrom_iso_format(PythonString dateString) isoformat(PythonString formatSpec) static PythonTimestatic PythonTimeof(PythonInteger hour, PythonInteger minute, PythonInteger second, PythonInteger microsecond, PythonLikeObject tzinfo, PythonInteger fold) replace(PythonInteger hour, PythonInteger minute, PythonInteger second, PythonInteger microsecond, PythonLikeObject tzinfo, PythonInteger fold) strftime(PythonString formatSpec) toString()tzname()Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__
-
Field Details
-
TIME_TYPE
-
$TYPE
-
hour
-
minute
-
second
-
microsecond
-
fold
-
tzinfo
-
-
Constructor Details
-
PythonTime
-
PythonTime
-
PythonTime
-
-
Method Details
-
$getAttributeOrNull
Description copied from interface:PythonLikeObjectGets an attribute by name.- Specified by:
$getAttributeOrNullin interfacePythonLikeObject- Overrides:
$getAttributeOrNullin classAbstractPythonLikeObject- Parameters:
name- Name of the attribute to get- Returns:
- The attribute of the object that corresponds with attributeName
-
of
public static PythonTime of(PythonInteger hour, PythonInteger minute, PythonInteger second, PythonInteger microsecond, PythonLikeObject tzinfo, PythonInteger fold) -
of
public static PythonTime of(int hour, int minute, int second, int microsecond, ZoneId zoneId, int fold) -
from_iso_format
-
replace
public PythonTime replace(PythonInteger hour, PythonInteger minute, PythonInteger second, PythonInteger microsecond, PythonLikeObject tzinfo, PythonInteger fold) -
utcoffset
-
dst
-
tzname
-
isoformat
-
strftime
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-