chris_51 Posted March 26, 2021 Share Posted March 26, 2021 I am trying to calculate the difference between two timestamps in hours.The results I am getting always round to the nearest hour for sme reason.The expression I am using is($F{alt_end_date}. getTime()-$F{alt_start_date}.getTime())/(1000*60*60) + " hours"alt_start_date & alt_end_date are java.sql.TimestampIf I remove the calculation to convert the result from ms to hours it gives me the correct result in MS Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now