java - Joda and moving the program/ having the program on multiple computers -
i have downloaded , added joda program. question is: if move program computer have joda? (does other computer have have "installed" or something?) how find out amount of time between date , date now? normal maths equation (date out - date now) or there else.?
thanks and/or sorry wasting time.
java platform independent language no matter if write code in 1 machine, surely run same output in machine.
regarding joda time:
the joda time can give time in seconds/hours/minutes..
http://joda-time.sourceforge.net/
between calculation logic calculate time in hours:
hours = hours.hoursbetween(new localdatetime(datetime1), new localdatetime(datetime2)).gethours(); you need parse current date date object in datetime format.
Comments
Post a Comment