{"id":188,"date":"2009-06-19T06:40:02","date_gmt":"2009-06-19T13:40:02","guid":{"rendered":"http:\/\/cknotes.com\/?p=188"},"modified":"2009-06-19T06:40:02","modified_gmt":"2009-06-19T13:40:02","slug":"using-systemtime-in-java","status":"publish","type":"post","link":"https:\/\/cknotes.com\/using-systemtime-in-java\/","title":{"rendered":"Using SYSTEMTIME in Java"},"content":{"rendered":"<p>Chilkat methods that return date\/time information do so using SYSTEMTIME.  The reason is that Chilkat&#8217;s C++ API uses SYSTEMTIME (a MS Windows struct for holding date\/time information) and these are wrapped to produce the Java (JNI) API.<\/p>\n<p>Here is an example showing how to access the contents of SYSTEMTIME:<\/p>\n<pre>\r\n    CkEmail email = new CkEmail();\r\n    \r\n    SYSTEMTIME dt = new SYSTEMTIME();\r\n    email.get_LocalDate(dt);\r\n    \r\n\tint month = dt.getWMonth();\r\n\tint year = dt.getWYear();\r\n\tint day = dt.getWDay();\r\n\tint hour = dt.getWHour();\r\n\tint minute = dt.getWMinute();\r\n\tint second = dt.getWSecond();\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Chilkat methods that return date\/time information do so using SYSTEMTIME. The reason is that Chilkat&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[430,208],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-java","tag-systemtime"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}