datetime server = TimeCurrent(), gmt = TimeGMT();
int TZ = (int) MathRound( (gmt - server) / 3600.0 );
Thanks for the suggestion WHRoeder.
The code returns the difference between GMT and the current, which is fine, and I can extrapolate from there, but I'm on GMT and BST, depending on the date. You're right, it may change on DST, but in my case it won't as the terminal is on the same time zone as the server. What I was really looking for was a string that instantiates to 'BST' or 'GMT' etc. or a value which is different today (Sep 9 uk, BST) to this time in 2 months (Nov 9, uk, GMT). Actually, I guess I could use UTC.
If you want an helpful answer, maybe you should think why people are helping others on a forum ?
Personally I am interested by Gumrai's question and your reaction doesn't encourage me to help you.
To add comments, please log in or register