mIRC Home    About    Download    Register    News    Help

Print Thread
#8987 31/01/03 01:08 AM
Joined: Dec 2002
Posts: 40
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
i was wondering if there is anyway of getting the $ctime then taking time off it.. i;ll try and explain it the best i can hehe

I live in australia and american time is between 15-17hrs behind. i was trying to make a script that got the current time, then took 15 hrs off it (which would be america time.) but i dont know if i can do this. because the day/date would be different to $ctime..

Is there anyway of doing this?

e.g.

Friday January 31st 2003 11:35am (Australian Time).
Thurday January 30th 2002 7:00pm (American Time)
is there anyway of take the time difference aswell at the day/month/date/year?

Coca-Bear

#8988 31/01/03 01:55 AM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
As a starter because there must be a better way.

$asctime($calc($ctime - (15 * 3600)),dd/mm/yyyy $+ $chr(32) $+ HH:nn:ss)

Replace 15 by 16 or 17 as required.

#8989 31/01/03 03:47 AM
Joined: Dec 2002
Posts: 40
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
thanks thats exactly what i was looking for..

Thanks

#8990 31/01/03 03:20 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
You're welcome smile

#8991 01/02/03 12:33 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
$asctime($calc($ctime - (15 * 3600)),dd/mm/yyyy HH:nn:ss)

The space is not required. smile You can do quite a lot of formatting inside the $asctime( ) second parameter.


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

Link Copied to Clipboard