From: Smith, Kevin (kevin.m.smith@siemens.com)
Date: Wed Sep 22 2004 - 10:12:14 EDT
Many, many thanks to all those who replied with constructive solutions.
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
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:29 EDT