07-15-2005, 06:01 AM
My son is in Japan this week participating in a Robocup (robots that play soccer) competition. Anyway, we in the family have a tough time figuring out what date and time it is over there. This made me think of a timezone calculator.
I haven't done it yet myself, but here are the requirements:
- Program written in QB or Quickbasic.
- Time always expressed in military time, example 17:30.
- Input timezones will be expressed as GMT +nn or GMT -nn.
- Dates formatted as mm/dd/yyyy.
- Input #1: the timezone, date and time that the user is in. This allows user to specify any date/time. Example: I will be in Singapore on 08/15/2005 at 10:00. What date/time will it be then in New York?
- Input #2: the timezone for which a date and time will be calculated based on the input.
- Perform adequate input validation.
- Output: the calculated timezone, date and time, plus the most important city in that timezone. Note: You determine the most important city.
NOTE: THE ABOVE SENTENCE WAS CORRECTED TO READ:
- Output: the calculated date and time for the timezone specified in Input #2, also displaying the city name for the timezone.
Considerations:
- You'll need to find the 24 time zones on the Internet. Refer to them as GMT +nn or GMT -nn. Also, assign the name of the most important city to each of the 24 timezones.
- Also on the Internet, you will have to find whether the most important city in each timezone is on daylight savings time or not.
NOTE: THE ABOVE DAYLIGHT SAVINGS TIME REQUIREMENT HAS BEEN SUSPENDED.
Please submit a complete working program, not just a function. I'll check every entry and provide feedback.
*****
I haven't done it yet myself, but here are the requirements:
- Program written in QB or Quickbasic.
- Time always expressed in military time, example 17:30.
- Input timezones will be expressed as GMT +nn or GMT -nn.
- Dates formatted as mm/dd/yyyy.
- Input #1: the timezone, date and time that the user is in. This allows user to specify any date/time. Example: I will be in Singapore on 08/15/2005 at 10:00. What date/time will it be then in New York?
- Input #2: the timezone for which a date and time will be calculated based on the input.
- Perform adequate input validation.
- Output: the calculated timezone, date and time, plus the most important city in that timezone. Note: You determine the most important city.
NOTE: THE ABOVE SENTENCE WAS CORRECTED TO READ:
- Output: the calculated date and time for the timezone specified in Input #2, also displaying the city name for the timezone.
Considerations:
- You'll need to find the 24 time zones on the Internet. Refer to them as GMT +nn or GMT -nn. Also, assign the name of the most important city to each of the 24 timezones.
- Also on the Internet, you will have to find whether the most important city in each timezone is on daylight savings time or not.
NOTE: THE ABOVE DAYLIGHT SAVINGS TIME REQUIREMENT HAS BEEN SUSPENDED.
Please submit a complete working program, not just a function. I'll check every entry and provide feedback.
*****