DevToys-app / DevToys

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

Add a "Now" button for the Date Converter #1358

Open dev-michael-schmidt opened 2 months ago

dev-michael-schmidt commented 2 months ago

What feature or new tool do you think should be added to DevToys?

For the Date Convert: A button that says "Now" with a stopwatch icon. You click the "Now" button and right this very instant:

Bonus points: a "track" button that updates in real-time

Why do you think this is needed?

It is time-consuming to enter the current hour, minute, and second (and sometimes days such as Feb 29th) manually for an ever-changing value.

Imagine how frustrating it would be for cases when all you want is a time that happened at least 2 minutes ago.

Solution/Idea

I would find a way to grab the current Epoch. With this Epoch, it would populate the fields.

Programmatically, you would use a sys call for the current epoch when the button is clicked or an "on-down event." If the Date and ISO 8601 boxes are tightly coupled, it might be as simple as setting this epoch in the "Date" box

Comments

No response

JakeS-dot commented 9 hours ago

Hi! I know this comment is late but - I made this as a pr around 20 days ago. If you really want this, feel free to run it locally!