-
- All Implemented Interfaces:
Native
- Enclosing class:
- Time
public static class Time.Tm extends Struct32
POSIX:structure tm.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intalignof()voidnativeToString(Appendable sb, String indentPrefix, String indent)static intsizeof()Get the real size of struct tm natively.inttm_hour()Hour [0,23].voidtm_hour(int tm_hour)Hour [0,23].inttm_isdst()Daylight Savings flag.voidtm_isdst(int tm_isdst)Daylight Savings flag.inttm_mday()Day of month [1,31].voidtm_mday(int tm_mday)Day of month [1,31].inttm_min()Minutes [0,59].voidtm_min(int tm_min)Minutes [0,59].inttm_mon()Month of year [0,11].voidtm_mon(int tm_mon)Month of year [0,11].inttm_sec()Seconds [0,60].voidtm_sec(int tm_sec)Seconds [0,60].inttm_wday()Day of week [0,6] (Sunday = 0 ).voidtm_wday(int tm_wday)Day of week [0,6] (Sunday = 0 ).inttm_yday()Day of year [0,365].voidtm_yday(int tm_yday)Day of year [0,365].inttm_year()Years since 1900.voidtm_year(int tm_year)Years since 1900.-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Method Detail
-
sizeof
@SizeOf public static int sizeof()
Get the real size of struct tm natively.- Returns:
- the native value sizeof(struct tm).
-
alignof
@AlignOf public static int alignof()
-
tm_sec
public int tm_sec()
Seconds [0,60]. POSIX:structure tm.- Returns:
- the native value of tm_sec.
-
tm_min
public int tm_min()
Minutes [0,59]. POSIX:structure tm.- Returns:
- the native value of tm_min.
-
tm_hour
public int tm_hour()
Hour [0,23]. POSIX:structure tm.- Returns:
- the native value of tm_hour.
-
tm_mday
public int tm_mday()
Day of month [1,31]. POSIX:structure tm.- Returns:
- the native value of tm_mday.
-
tm_mon
public int tm_mon()
Month of year [0,11]. POSIX:structure tm.- Returns:
- the native value of tm_mon.
-
tm_year
public int tm_year()
Years since 1900. POSIX:structure tm.- Returns:
- the native value of tm_year.
-
tm_wday
public int tm_wday()
Day of week [0,6] (Sunday = 0 ). POSIX:structure tm.- Returns:
- the native value of tm_wday.
-
tm_yday
public int tm_yday()
Day of year [0,365]. POSIX:structure tm.- Returns:
- the native value of tm_yday.
-
tm_isdst
public int tm_isdst()
Daylight Savings flag. POSIX:structure tm.- Returns:
- the native value of tm_isdst.
-
tm_sec
public void tm_sec(int tm_sec)
Seconds [0,60]. POSIX:structure tm.- Parameters:
tm_sec- the value of tm_sec to be set natively.
-
tm_min
public void tm_min(int tm_min)
Minutes [0,59]. POSIX:structure tm.- Parameters:
tm_min- the value of tm_min to be set natively.
-
tm_hour
public void tm_hour(int tm_hour)
Hour [0,23]. POSIX:structure tm.- Parameters:
tm_hour- the value of tm_hour to be set natively.
-
tm_mday
public void tm_mday(int tm_mday)
Day of month [1,31]. POSIX:structure tm.- Parameters:
tm_mday- the value of tm_mday to be set natively.
-
tm_mon
public void tm_mon(int tm_mon)
Month of year [0,11]. POSIX:structure tm.- Parameters:
tm_mon- the value of tm_mon to be set natively.
-
tm_year
public void tm_year(int tm_year)
Years since 1900. POSIX:structure tm.- Parameters:
tm_year- the value of tm_year to be set natively.
-
tm_wday
public void tm_wday(int tm_wday)
Day of week [0,6] (Sunday = 0 ). POSIX:structure tm.- Parameters:
tm_wday- the value of tm_wday to be set natively.
-
tm_yday
public void tm_yday(int tm_yday)
Day of year [0,365]. POSIX:structure tm.- Parameters:
tm_yday- the value of tm_yday to be set natively.
-
tm_isdst
public void tm_isdst(int tm_isdst)
Daylight Savings flag. POSIX:structure tm.- Parameters:
tm_isdst- the value of tm_isdst to be set natively.
-
nativeToString
public void nativeToString(Appendable sb, String indentPrefix, String indent) throws IOException
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32- Throws:
IOException
-
-