Counting time difference.

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 3 14:45:03 PST 2016


On Wednesday, 3 February 2016 at 22:27:07 UTC, holo wrote:
> When i start same program on server in different timezone 
> difference is much higher (more than hour). Why it is 
> happening? Timezones shouldnt have influence on such equation.

Try using `Clock.currTime(UTC())`. And make sure all instances 
produce timezone independent timestamps.


More information about the Digitalmars-d-learn mailing list