This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
For our applicatio i have to develop one which has to show remaining time from today. To reach this kind of requirement ,
I am calculating the end date from give data. and I am calculating seconds difference and again making that into days and hours,
To implement this functionality coding part is becoming more .
So please tell me is there any readymade jar file to handle the date and time functionality. Also send me a sample for that.
The standard date and time API in Java is unfortunately not so good at many things. One popular library for handling dates and times is Joda Time - there's even a JSR with a proposal for a new date and time API for a future version of Java, which will most likely be based on Joda Time.
I am using that joda time jar file only. with that also I have some issues.
I have one start date, from that time , I have to increase the date by adding weeks and days , but This joba providing onlyimmutable objects , it is not recomadable for the iterations
if you knows any another please tell me..
thanks
mallikarjuna
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35250
7
posted
0
mallikarjuna ch wrote:This joba providing onlyimmutable objects , it is not recomadable for the iterations
What does the (im)mutability of an object have to do with its capabilities? Looking at the javadocs of org.joda.time.DateTime, I see numerous methods that add or subtract various time quantities (and return it as a new object). That should cover your needs nicely.