Search Results

Search: Posts Made By: Sendhil.Kumaran
3,529
Posted By rdcwayx
gawk 'function time(r,s,t,x,y,z) ...
gawk 'function time(r,s,t,x,y,z)
{str1=mktime("2011 1 1" FS r FS s FS t)
str2=mktime("2011 1 1" FS x FS y FS z)
diff=str1-str2
H=int(diff/3600)
...
3,529
Posted By rdcwayx
Not sure your expect output, below code can...
Not sure your expect output, below code can support overnight time calculate.


awk 'function t(x,y,z) {return x+y/60+z/3600}
/Begin/ {a[$1]=$3}
/Complete/&&a[$1] {...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy