mIRC Home    About    Download    Register    News    Help

Print Thread
#1414 13/12/02 01:47 AM
Joined: Dec 2002
Posts: 4
M
MDBen Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2002
Posts: 4
Can you like have $gmt work the same as $ctime. I wanna be able to do something like $gmt(3rd August 1987 3:46pm).

#1415 13/12/02 02:17 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
For now, you could use something along the lines of ...
Code:
alias gmtc {
  return $calc($ctime($1) + $calc($gmt - $ctime))
}

And have $gmtc(whatever date/time here). I'm not sure if the above will work but you get the idea of what I intended. wink (I hope)


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1416 13/12/02 12:54 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Also, $timezone = $calc($gmt - $ctime). grin So you could use:
Code:

alias gmtc return $calc($ctime($1) + $timezone)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard