Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link

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. 

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 418

Question asked: Apr 10 '17, 6:48 a.m.

Question was seen: 4,558 times

Last updated: Apr 10 '17, 7:18 a.m.

Confirmation Cancel Confirm