Re: Counting time difference.

2016-02-04 Thread holo via Digitalmars-d-learn
On Wednesday, 3 February 2016 at 22:45:03 UTC, sigod wrote: 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.

Re: Counting time difference.

2016-02-03 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, February 03, 2016 22:27:07 holo via Digitalmars-d-learn 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. You're probably getting problems due to

Re: Counting time difference.

2016-02-03 Thread sigod via Digitalmars-d-learn
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 instanc

Counting time difference.

2016-02-03 Thread holo via Digitalmars-d-learn
Hello I'm trying to count time difference to count time for how long instance is running. Here is how am i doing it: import std.stdio, sigv4, kxml.xml, awsxml; import std.datetime; import std.string; void main() { SigV4 req = new SigV4; IfResult result = req.go; AwsXml instance