21.07.2012, 03:53
My problem goes like this:
- so we have Gettime function (https://sampwiki.blast.hk/wiki/Gettime) and it works how it should, but..
If I have server hosted in Germany (on example), and I want to have exact time from my country (because I dont live in Germany) .. how can I achieve that?
I did some *time calculations in past, but it ends up very inaccurate.. by that, I mean, I was literally adding minutes and seconds to match with time I have in my country.
And later I found out about this page => http://wwp.greenwichmeantime.com/tim.../croatia/time/ (I live in Croatia, obviously xD)
Here it counts every second, min and hour exactly as I need it to (in my script). And I wonder, is there a way to put *time information from that website into few variables in my script? And how?
Thanks for reading
- so we have Gettime function (https://sampwiki.blast.hk/wiki/Gettime) and it works how it should, but..
If I have server hosted in Germany (on example), and I want to have exact time from my country (because I dont live in Germany) .. how can I achieve that?
I did some *time calculations in past, but it ends up very inaccurate.. by that, I mean, I was literally adding minutes and seconds to match with time I have in my country.
And later I found out about this page => http://wwp.greenwichmeantime.com/tim.../croatia/time/ (I live in Croatia, obviously xD)
Here it counts every second, min and hour exactly as I need it to (in my script). And I wonder, is there a way to put *time information from that website into few variables in my script? And how?
Thanks for reading