DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

.NET Ticks (timestamp) converter

Open epeshk opened this issue 2 years ago • 4 comments

What's the Problem?

Feature request: .NET Ticks (timestamp) converter, like https://tickstodatetime.azurewebsites.net/

Solution/Idea

as stated above

Alternatives

Use website, or C# interactive

Priorities

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

DevToys Version

No response

Comments

No response

epeshk avatar May 02 '22 20:05 epeshk

Hi @epeshk ,

Thanks for your feedback. There's already a timestamp converter in DevToys. Does it not do what you are expecting?

veler avatar May 15 '22 16:05 veler

Hi @veler ,

Current timestamp converter is UNIX timestamp like "1655263430", but what @epeshk expected is .NET timestamp like "637908602300000000" which is also what I expected, please consider supporting it.

Thanks,

tony-li-avepoint avatar Jun 15 '22 03:06 tony-li-avepoint

Oh I see! Thanks for explaining this 😁

veler avatar Jun 15 '22 03:06 veler

Difficult to place UI for settings. image image The UI is different from other tools, but I think this UI is easy to understand.

niyari avatar Jul 11 '22 22:07 niyari

Difficult to place UI for settings. image image The UI is different from other tools, but I think this UI is easy to understand.

Hello, when can I use this new function? I still haven't found any options to switch in the latest version. I think this function is more important to me

XXXXXXzmm avatar Feb 02 '23 04:02 XXXXXXzmm

The input part of Timestamp uses WinUI(muxc:NumberBox). NumberBox uses Double. It is unlikely to be changed from Double because it needs to work the same way in various environments.

Converting the NumberBox to ms as it is will result in incorrect calculation results. For this reason, other methods must be provided.

For example, this is the way to do it. Prepare a dedicated input field (window will be longer) Create a dedicated component that "looks exactly the same" as the NumberBox.

niyari avatar Feb 02 '23 04:02 niyari

I'd be interested in working on this. Would you like the input to be in UTC ticks, or calculated relative to the selected time zone?

anthonyhardman avatar Nov 07 '23 22:11 anthonyhardman

Hi, @btiteux is currently working on it for DevToys 2.0

veler avatar Nov 08 '23 15:11 veler

Hello, I'm currently migrating the timestamp converter. I plan to support milliseconds and will see about adding the ticks support.

btiteux avatar Nov 08 '23 17:11 btiteux