Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to calculate with time
How to calculate with time [message #1009485] Fri, 15 February 2013 08:15 Go to next message
Pascal Schaible is currently offline Pascal Schaible
Messages: 2
Registered: February 2013
Junior Member
Hello!

I didn't know where to post my question so please feel free to move it!

I want to substract minutes or hours from a exatc time in java, for example:
1 hour and 15 minutes from 12:00 so that the solution would be 10:45.

How is that possible? I know the java.util.date or calender library, but I don't think that would me help here, or would it?

Thanks for your help!

[Updated on: Fri, 15 February 2013 12:30]

Report message to a moderator

Re: How to calculate with time [message #1009696 is a reply to message #1009485] Fri, 15 February 2013 14:37 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hi

Have look at Joda Date/Time:
http://joda-time.sourceforge.net/

HTH
Michael
Re: How to calculate with time [message #1011261 is a reply to message #1009696] Tue, 19 February 2013 07:41 Go to previous message
Pascal Schaible is currently offline Pascal Schaible
Messages: 2
Registered: February 2013
Junior Member
Hello!

Thanks so far! I think I could use this but is there no more simply option? That would be great =)
Previous Topic:Ubuntu gesture panels
Next Topic:How can I create a "Source Folder" browser
Goto Forum:
  


Current Time: Mon Oct 20 17:55:56 GMT 2014

Powered by FUDForum. Page generated in 0.01915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software