Package io.deephaven.web.client.api
Class LocalTimeWrapper
java.lang.Object
io.deephaven.web.client.api.LocalTimeWrapper
Wrap LocalTime values for use in JS. Provides text formatting for display and access to the underlying value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetHour()intintgetNano()intstatic IntFunction<LocalTimeWrapper> intCreator(int unitPerMicro) static LongFunction<LocalTimeWrapper> longCreator(int unitPerMicro) inttoInt(int unitsPerSecond) Converts this time to an int value in the given units.longtoLong(int unitsPerSecond) Converts this time to a long value in the given units.toString()valueOf()
-
Constructor Details
-
LocalTimeWrapper
public LocalTimeWrapper(int hour, int minute, int second, int nano)
-
-
Method Details
-
intCreator
-
longCreator
-
toInt
public int toInt(int unitsPerSecond) Converts this time to an int value in the given units. The parameter matches the convention used byintCreator(int)- 1 for seconds, 1_000 for milliseconds. -
toLong
public long toLong(int unitsPerSecond) Converts this time to a long value in the given units. The parameter matches the convention used bylongCreator(int)- 1_000_000_000 for nanoseconds, 1_000_000 for microseconds. -
valueOf
-
getHour
@JsMethod public int getHour() -
getMinute
@JsMethod public int getMinute() -
getSecond
@JsMethod public int getSecond() -
getNano
@JsMethod public int getNano() -
toString
-