Qalculate / libqalculate

Qalculate! library and CLI
https://qalculate.github.io/
GNU General Public License v2.0
1.81k stars 145 forks source link

Time Zone Conversion #204

Open kidimbwi opened 4 years ago

kidimbwi commented 4 years ago

could you consider adding time zone conversion to Qalculate ? it would be convenient to enter something like 15:40 IST(Indian Standard Time) to PST(Pacific Standard Time) and get the time in regions with PST

hanna-kn commented 4 years ago

The problem is that IST is also an abbreviation for Irish Standard Time and Israel Standard Time, and PST for Philippine Standard Time.

To convert from Indian Standard Time to Pacific Standard Time you can enter the expression "20200624T15:40+05:30" to UTC−8, although I understand that it is not very convenient.

kidimbwi commented 4 years ago

The problem is that IST is also an abbreviation for Irish Standard Time and Israel Standard Time, and PST for Philippine Standard Time.

perhaps this feature would work like the currency conversion feature does where typing in "mal" will give a user the option to choose from five different currencies(Malagasy Ariary, Malawian Kwacha,Maldivian Rufiyaa, Maltese Lira and the Malaysian Ringgit) that may match what they are looking for. type in IST and all the available options would popup or type in "Irish" and the popup with Irish Standard Time would be available for selection. a dialog box would also work, the user would enter the time(zone) or location to convert from and choose the timezone/location from a list of them to convert to. this site is a great example of this feature in action: https://savvytime.com/converter/ist-to-pst-pitcairn perhaps you could mimic its behaviour in Qalculate ?

To convert from Indian Standard Time to Pacific Standard Time you can enter the expression "20200624T15:40+05:30" to UTC−8, although I understand that it is not very convenient.

yes this is a bit inconvenient to use though it is nice to know the functionality is there.

MurzNN commented 1 year ago

Seems this is a duplicate of the https://github.com/Qalculate/libqalculate/issues/123 ?