This specifically goes for gmtime() function in C, although if it gets time differently compared to the other time functions I’d like to know.
Like if I change the system time will it mess things up? Will it get the wrong time?
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.
Yes. they are dependent upon the value of the system clock. If you change the system clock you will get different results as that is the only way that it can get the current system time (unless you use something like NTP but you won’t find that in any C/C++ standard library).