DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.94k stars 1.45k forks source link

Timespan manipulation #219

Open jmorgannz opened 2 years ago

jmorgannz commented 2 years ago

What's the Problem?

No calculator app I have ever used has an option for 'timespan' mode, where one can run math operations on timespans without having to do the mental arithmetic to convert from base 60? to base 10 decimal.

Solution/Idea

It would be great to have this in DevToys. Both for adding/subtracting/etc timespans; It might be nice to also allow conversion from different time formats - such as unix fromat etc. also.

Use cases might be, finding the average hours slept per night for one week, which would involve:

Of course you can do this on a regular calculator but it will be showing decimal time.

Another use case might be calculating the time 36hr from now:

Alternatives

Use calculator in decimal mode

Priorities

No response

DevToys Version

No response

Comments

No response

veler commented 2 years ago

Thank you for your suggestion 😊 @btiteux , what do you think? It sounds more of a calculator than simply timestamp parser/converter.

chienstone commented 2 years ago

I also will be nice if DevToys can convert timestamp into GMT or others human readable form

veler commented 2 years ago

Duplicate with #106

jmorgannz commented 2 years ago

Hi, This is not a duplicate as this is not about formatting time. It is about performing arithmetic on timespans.

veler commented 2 years ago

Oh you're right, my bad, sorry about that. :)