F
F
furyk2013-05-04 12:51:22
Time Zones
furyk, 2013-05-04 12:51:22

What is missing?

Over the past month, I have needed to translate time zones more than once, and I was specifically upset by all the existing services. A hell of a pile of forms, the lack of geolocation and support for the Russian language, the inability to specify the name of the city instead of the name of the time zone, and so on. In general, I decided to write my own, with blackjack.

So, some features:

  • Complete rejection of bulky forms. Everything is entered in text. That is, if you are interested in what time it will be in Moscow when it is 17:23 in New York, then you write: " 17:23 New York in Moscow ".
  • There are 15 thousand cities in the database, there are also names in other languages. That is, you can write " 17:23 New York in Moscow " or even " 17:23 City of New York in City of Maskwa ". It's in Belarusian.
  • Instead of city names, you can specify time zones: " 13:50 GMT in CET " or simply " GMT to CET ".
  • If you just enter " 17:00 Tokyo ", then the script will try to determine your location and give you exactly the result you are interested in. For geolocation, the smart-ip.net API is used.
  • If it is possible to determine the time and place, then the script calculates the time of sunrise and sunset and changes the background color accordingly. So that you can immediately clearly see whether it is night or day.

In general, it is much easier to show than to describe in words. May the administration forgive me.

Now to the questions.

1. Is it worth it to buy a domain and try to develop a similar project, or is it nafig no one but me needs / such good is already in bulk?
2. What is missing? The plans are to make a quick and convenient autocomplete and automatically determine in which format to show the result (for example, AM / PM infuriates me)

I forgot to say that this whole thing will be available on the github.

Answer the question

In order to leave comments, you need to log in

10 answer(s)
P
pomeo, 2013-05-04
@pomeo

And why does Google not like www.google.com/search?q=time+New-York , it can do a lot of things there www.google.com/help/features.html .
Plus, they also have a jabber bot [email protected], which supports part of this functionality

S
Sergey, 2013-05-04
@serega_kaktus

1. Yes, it's worth it. Such good in bulk, of course, but you have the opportunity to do better than anything else.
2. First of all, there are not enough tests. I'll send something to you.
It is not convenient to enter numbers and colons from a laptop keyboard without a numpad or from a smartphone / tablet. Make several types of forms. For example, instead of entering the whole time, two short text fields separated by a colon. Select a country/city from the dropdown list.
You can display information about the entered cities, something like the weather. But so as not to interfere with the basic information.

J
Jonh Doe, 2013-05-04
@CodeByZen

Not that? time.yandex.ru/

P
pelment, 2013-05-06
@pelment

I offer these options. Instead of the word "in":
- Write a hyphen. It would be possible and an arrow, but it will be inconvenient to type.
- Do not write anything at all.
- Write a comma :)
Then the problem with languages ​​disappears.
With a comma, you can expand the functionality, and parse a string from several cities, so that you can immediately find out what time it is in several. I think it will be useful for video conferencing.
Maybe you should make a browser extension so that those who, like you, constantly watch different times, can do it right in the browser?

T
truekenny, 2013-05-04
@truekenny

There is enough good, but you did it conveniently.
It would be possible to add the design language by accept-language, by IP you can get the country - respectively, the time recording format.
Understand the format without minutes: "21 CET in Moscow".

M
Maxim Dyachenko, 2013-05-04
@Mendel

IMHO the definition of the user zone by IP is not very successful. I would take the current time from the user's computer, and calculate the zone based on it. (The error of the clock can be assumed within half an hour, i.e. we choose the deviation of the number of minutes from the expected number for real hours with the sign that is less in magnitude).
Ideally, of course, compare two results - by IP and by browser, and if you get different numbers, then ask the user.
At the same time, tell the user how to reconfigure the time in his operating system (how to rearrange the time zone at least. It often happens that people have the MSC time zone on their computer simply because it is set by default, and people don’t know how to change the time zone, change time ... the next time you sync, the time is reset, and people give up on it).

B
btd, 2013-05-04
@btd

A good thing. Develop - I would use.
There is a suggestion about the output format: it would be nice to let the user set the locale. For example:
> 12am Arlington in Tver When it 's
12AM in Arlington (United States), it's 9AM in Tver' (Russian Federation)
Tver' is 9 hours ahead of Arlington
Yes, I entered 12am myself, but I always forget how much we have, and a colleague uses this format.

R
rPman, 2013-05-04
@rPman

Think all the same when choosing a city, not only by name.
An example for reflection:
maps.yandex.ru

Russia, Moscow
Poland, East Lodz county, Novosolna, Moscow

N
Nikita Gusakov, 2013-05-04
@hell0w0rd

Do it faster if the service grows - one of the search giants may be interested. This is convenient, the Google calculator will only gain in price from this.

G
gaelpa, 2013-05-04
@gaelpa

There is not enough opportunity to specify not only cities, but also countries. Many countries are content with one time zone, for others a range can be displayed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question