Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 03:20 AM
Hi Markus,
Thanks a lot for your response. It providing time in seconds in proper way. But in hours it is not calculating properly.
- var dur_seconds = gs.dateDiff(start, end, true); // returns a String
- var dur_hours = Math.round(dur_seconds / 60 / 60);
- gs.print(dur_hours);
In above part if dur_seconds = 2400 second
then dur_hours = 1
while it should provide 2400/60/60 = 2/3 = .66
Please help.
Thanks,
Sourabh