1970 being returned for GetYear()

Hi all

I'm farily new to all this but I was wondering if someone could help me.

I have a peice of code which uses the GetYear() function however when I run the code I get the date returned as 1970!! Any ideas?? I don't want to go back to the 70s :)

Thanks

Bozza
What is your language?
What is your complier?
What is your OS?
Well, all I know is that those functions are counting from the 1970's when C was first made or something. Not really sure what you can do about it though.
1970 january 1 is Unix time !
The unix is invented!
You'll have to do as simo110 asked and show us how you are getting the date. GetYear() is not a standard C++ function.

Because dates are often packed into a single integer they often have limited range, so they are designed with a given offset in mind. For example, the year would be stored as 0 to 999, but represent the years 1970..2969. Make sense?
Topic archived. No new replies allowed.