I want to start creating programs on my own, however my c/c++ skills are still very basic.
I'm really interested in creating a program that tells you your time according to the time zone you enter
for example:
Please enter time zone: eastern time
Your time zone is GMT -5:00
Your current time is 12:19 pm
Would you like to try another?(y/n)
something along those lines. Eventually I want to be able use this knowledge and apply it to creating some basic free throw around apps that you mess around with and look nice. And ultimately I want to be able to apply this (and of course many other important features) to when i start developing video games, or other software,
in this case save files they have time stamps most likely applied via the machine it's using but how does it access that?.
ive looked into various functions found on cplusplus library and i've come across some functions
"localtime" "gmtime" and "time" (for getting current time etc)
but I want to know how these functions are made, the process, the formulas they used. How do i even go about thinking to create something like that.
I even looked up how time zones are calculated and i got "Each line of longitude has a 15 degree difference and every 15 degree is 1 hour different" - Wiki Answers.
this is just some pondering I've had for a couple days.
So I plan to do this using C++ and primarily windows based machines (not sure if it makes a difference whether it's OSX or Unix/Linux or Windows)
All help is greatly appreciated,
thanks!
Umeed