Problem of the Day
A new programming or logic puzzle every Mon-Fri

Timezones

Sometimes it is tough to communicate with people all over the world when you don't know what time it is where they are. Create a program that reads your computer's time and prints out the GMT time difference of another timezone. For instance:

//Assuming my timezone is -7

timeConverter(-4);
>> +3

timeConverter(-8);
>> -1

Permalink: http://problemotd.com/problem/Timezones/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein