Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unix timestamps expanded beyond just seconds #1420

Open
Ksingh108 opened this issue Oct 18, 2024 · 2 comments
Open

Unix timestamps expanded beyond just seconds #1420

Ksingh108 opened this issue Oct 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working devtoys-v2.0 DevToys v2.0 enhancement Idea of improvement of existing feature.

Comments

@Ksingh108
Copy link

What improvement do you think would an existing feature or tool in DevToys?

The current "Unix Timestamp Converter" tool only works with seconds. I have epoch times in micro, milli, and nano seconds that I would like to convert to date time. Also to generate an epcoh value at those various levels (micro/milli/nano)

Solution/Idea

The converter input can take longer values that can be processed and output timestamps at micro, milli, and nano seconds.

Have dropdown for generation of epoch time now button to choose from micro, milli, and nano seconds to create matching output values

Comments

No response

@Ksingh108 Ksingh108 added enhancement Idea of improvement of existing feature. untriaged labels Oct 18, 2024
@btiteux
Copy link
Collaborator

btiteux commented Oct 22, 2024

Hello, the "Date Converter" tool supports milliseconds. Can you give me a sample of a timestamp that is not working with milliseconds?

We can see how to add this support for the micro and nanoseconds.

My main concern will be on the UI side, which is correctly displaying the fields in compact mode.

@btiteux btiteux self-assigned this Oct 22, 2024
@btiteux btiteux added bug Something isn't working devtoys-v2.0 DevToys v2.0 and removed untriaged labels Oct 22, 2024
@Ksingh108
Copy link
Author

Hi. For milliseconds time 1729695663179 for example when pasting causes the number on input to change to a number that was not what was pasted and year becomes 9999 etc. Screenshot below after pasting, the number changed, and outputs incorrect
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devtoys-v2.0 DevToys v2.0 enhancement Idea of improvement of existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants