How compare the date and time with RTC System and Java Application?
Requirement is to compare the date and time with RTC System and Java Application.But I am not sure which format RTC is accepting from java application including TZ format.Suppose I have the Date format in RTC is like Apr 10, 2017, 1:57:34 PM ,for the same Date how can I check or compare in Java application and I would like to know which date format RTC system is accepting? Requesting your inputs.
One answer
Example code can be found here: https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/
To store dates the API uses java.sql.Timestamp. Calculation uses http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html to convert.
Duration is usually a long value that stores milliseconds.