Jump to content
We've recently updated our Privacy Statement, available here ×

chris_51

Members
  • Posts

    1
  • Joined

  • Last visited

chris_51's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. 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.Timestamp If I remove the calculation to convert the result from ms to hours it gives me the correct result in MS
×
×
  • Create New...