1969 return for localtime_s in C++
Go to solution
Solved by Mr_KoKa,
localtime function converts timestamp into calendar time. The second param is time to convert (your t variable) and since your is 0 then it is 0 (which is 1970 + timezone).
try:
time_t t = time(NULL);
-
Featured Topics
-
Topics
-
0
-
4
-
0
-
AcidVinyl ·
Posted in Graphics Cards3 -
Phantasmagoria ·
Posted in Cooling0 -
BotherRed ·
Posted in General Discussion4 -
0
-
0
-
1
-
GOATWD ·
Posted in Operating Systems8
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now