mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 28
F
Fill Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2007
Posts: 28
I think this may be really difficult:

The time difference between Portugal and Brazil is 2 hours. When it is 21:39 here, it is 19:39 in Brazil.

I'm making a date trigger to make my bot say the date when someone types !date.

However, if I use $date it will be wrong for Brazil, because if someone types !date at 2:00AM (in Portugal time), it'll tell it's for example 17th November, when it should say it was 16th Novemeber for Brasil and 17th November for Portugal.

So, I wanted something to see the difference between the hours and calculate the date for both countries.

What do you suggest me? I really don't have any idea at all.

Thanks in advance,
Fill

Joined: Nov 2007
Posts: 19
J
Pikka bird
Offline
Pikka bird
J
Joined: Nov 2007
Posts: 19
$GMT will return the time in GMT. Readable format: $asctime($gmt)

Using that, you could do something like:
EST = -4 GMT
EST is 4 hours before GMT

(Just an example, I'm not sure about EST/GMT)


Link Copied to Clipboard