Package org.gnome.glib
Class Time
Deprecated.
Simply a replacement for
time_t
. It has been deprecated
since it is not equivalent to time_t
on 64-bit platforms
with a 64-bit time_t
.
Unrelated to GTimer
.
Note that GTime
is defined to always be a 32-bit integer,
unlike time_t
which may be 64-bit on some systems. Therefore,
GTime
will overflow in the year 2038, and you cannot use the
address of a GTime
variable as argument to the UNIX time()
function.
Instead, do the following:
time_t ttime;
GTime gtime;
time (&ttime);
gtime = (GTime)ttime;
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Time[]
fromNativeArray
(MemorySegment address, long length, boolean free) Deprecated.Methods inherited from class io.github.jwharm.javagi.base.Alias
equals, getAddressValues, getBooleanValues, getByteValues, getCharacterValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getShortValues, getValue, hashCode, setValue
-
Constructor Details
-
Time
public Time(int value) Deprecated.Create a new Time with the provided value
-
-
Method Details
-
fromNativeArray
Deprecated.
-