I am Using a script i found ..
I have two hash tables ..
one holds the times i started .. start-up-times- $+ $chan
and one that holds the uptimes .. up-times- $+ $chan
%oldinfo reads the > start-up-times- $+ $chan
%newtime > is the new time
var %fixit = $datediff(%oldinfo, %newtime,u)
/hadd -m up-times- $+ $chan $nick %fixit
up-times- $+ $chan < is the storage i nee to read and get the BEST time from