How compare the date and time with RTC System and Java Application?
Gayathri Kola (11●1●1)
| asked Apr 10 '17, 6:48 a.m.
edited Apr 10 '17, 7:09 a.m. by Ralph Schoon (63.3k●3●36●46) 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
Ralph Schoon (63.3k●3●36●46)
| answered Apr 10 '17, 7:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.