I just got stuck trying to return the *offset* between local time ($ctime) and the networks time (/time reply)
Example: raw 391 returns:
<Mynick> <TheServer> Tuesday April 29 2008 -- 15:57 -05:00
My $asctime was:
Tue Apr 29 22:57:48 2008
My $asctime(zzz) was:
I tried something messy to return a "server ctime":
$calc($ctime($gettok($1-,3-6,32) $gettok($1-,8,32)) - $duration($+($gettok($1-,9,32),:00)) - $calc($gmt - $ctime))
Now, this returns an offset of 1hr to my local $ctime.
Do I err? And/or is there a better way to calc this difference out of that raw reply?