Does the function clock_gettime return a timestamp measured from the epoch in UTC or in the local time zone?
I know that time is supposed to be from the UTC epoch, but I can’t find any reference saying the same is true of clock_gettime.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To quote Wikipedia, the Unix Epoch is defined as
From this it follows that any reference to “the Epoch” implies UTC.