p=0 while""do s=io.read()f=s:gfind"%d+"t=9e4*f()+60*f()+f()print(s,os.date("!%X",t-p))p=t end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page