Using SYSTEMTIME in Java
Chilkat methods that return date/time information do so using SYSTEMTIME. The reason is that Chilkat’s C++ API uses SYSTEMTIME (a MS Windows struct for holding date/time information) and these are wrapped to produce the Java (JNI) API.
Here is an example showing how to access the contents of SYSTEMTIME:
CkEmail email = new CkEmail(); SYSTEMTIME dt = new SYSTEMTIME(); email.get_LocalDate(dt); int month = dt.getWMonth(); int year = dt.getWYear(); int day = dt.getWDay(); int hour = dt.getWHour(); int minute = dt.getWMinute(); int second = dt.getWSecond();
admin
0
Tags :