Re: gettimeofday() seems to return local time
Re: gettimeofday() seems to return local time
- Subject: Re: gettimeofday() seems to return local time
- From: Justin Walker <email@hidden>
- Date: Wed, 1 Dec 2004 15:39:14 -0800
On Dec 1, 2004, at 14:57, Michael Rubinstein wrote:
I'm using gettimeofday(), on OS X 10.3.6, to get the time resolution I
need (milliseconds).
If I'm reading the documentation right, I should be getting time in
UTC. However, I'm getting local time.
As I read the man page, you should get the local time in *tp, and the
offset from UTC in *tzp.
Should gettimeofday() return local time?
Yup.
Will it work the same on all Macs?
Boy, that's an open-ended question. Do you mean "all macs running Mac
OS X"? If so, I believe the answer is yes.
Will it change with future releases of OS X?
That's even more vague. The answer is: there is no answer to your
question. First, forever is a long time; second, most of us here are
not privy to plans that Apple has for its products, and those who are,
but are not Steve, dare not repeat them :-}.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | When LuteFisk is outlawed
| Only outlaws will have
| LuteFisk
*--------------------------------------*-------------------------------*
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden