Results 1 to 4 of 4
- 06-08-2010, 08:08 AM #1
Member
- Join Date
- May 2010
- Posts
- 22
- Rep Power
- 0
take the total time for particular period
i am getting the timestamp from database
i need outputJava Code:2010-06-01 09:36:13 2010-06-01 09:37:14 2010-06-01 09:38:14 2010-06-01 09:39:14 2010-06-01 09:39:45 2010-06-01 17:05:27 2010-06-01 17:06:28 2010-06-01 17:07:28 2010-06-01 17:08:28 2010-06-01 17:10:29 2010-06-01 17:11:29 2010-06-01 17:12:29 2010-06-01 17:13:29
Code:
exampleJava Code:from to 2010-06-01 09:36:13 2010-06-01 09:39:45-->take the total time(output) 2010-06-01 17:05:27 2010-06-01 17:08:28-->take the total time(output) 2010-06-01 17:10:29 2010-06-01 17:13:29-->take the total time(output)
like this
2010-06-01 17:05:27-start time
2010-06-01 17:08:28-end time(total time)
2010-06-01 17:10:29-start time
2010-06-01 17:13:29-end time(total time)
please help me how to write the java code to get the above output
- 06-08-2010, 08:23 AM #2
- 06-08-2010, 08:45 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
For two timestamps TS1 < TS2 the time difference is TS2-TS1 measured in milli seconds. btw. why did you start a new thread for this?
kind regards,
Jos
- 06-08-2010, 09:42 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
calculate time diff for particular time period
By baktha.thalapathy in forum New To JavaReplies: 2Last Post: 05-24-2010, 04:10 PM -
how do get particular date of total time
By baktha.thalapathy in forum New To JavaReplies: 2Last Post: 05-24-2010, 02:09 AM -
Addition of period to dates
By jboy in forum New To JavaReplies: 4Last Post: 09-14-2009, 12:23 PM -
Have a period in string, how to make it look nicer
By JordashTalon in forum New To JavaReplies: 6Last Post: 03-06-2009, 12:23 AM -
signing applets for a period of time
By sandeepk84@gmail.com in forum Java AppletsReplies: 0Last Post: 12-04-2007, 01:34 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks