SUMMARY: Off topic - working out time differences
2007-12-25 4:00:00
Denes, Daniel
Dan Lorenzini
Alan :)
JULIAN, JOHN C
Dan.L Suggested gdate along with the syntax - this was exactly what I was
looking for ..
>>
You can use 'gdate' (GNU date) to do this. It has a -d option to
specify the date and time (instead of the current) and +%s to output
seconds (instead of month/day strings, etc.). So in your case:
% gdate -d 22:59:01 +%s
1095908341
% gdate -d 23:09:01 +%s
1095908941
% bc
(1095908941-1095908341)/60
10.00000000000000000000
<<
No thanks to people who told me the subject was off topic. As an fairly
regular contributor to the list I felt this time the request was justified.
Kev Smith
Comments
Got something to say?
You must be logged in to post a comment.

