Skip to content

Add DateConverter (old Timestamp Converter) to DevToys 2.0 #1009

Merged
veler merged 4 commits into
dev/2.0from
dev/2.0-converters-timestamp
Dec 26, 2023
Merged

Add DateConverter (old Timestamp Converter) to DevToys 2.0 #1009
veler merged 4 commits into
dev/2.0from
dev/2.0-converters-timestamp

Conversation

@btiteux

@btiteux btiteux commented Dec 21, 2023

Copy link
Copy Markdown
Collaborator

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • New feature or enhancement
  • UI change (please include screenshot!)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

DateConverter / Timestamp Converter doesn't exist in DevToys 2.

Issue Number: #683

What is the new behavior?

Ported the Timestamp Converter from DevToys v1 to DevToys v2. At the same time, I added three new functionalities to the Timestamp Converter.

  • Convert Date to Ticks
  • Convert Date to Milliseconds
  • Convert Date using custom Epoch

With these new features, the Timestamp Converter has been renamed Date Converter.

Other information

image

Quality check

Before creating this PR:

  • Did you follow the code style guideline as described in CONTRIBUTING.md
  • Did you build the app and test your changes?
  • Did you check for accessibility? On Windows, you can use Accessibility Insights for this.
  • Did you verify that the change work in Release build configuration
  • Did you verify that all unit tests pass
  • If necessary and if possible, did you verify your changes on:
    • Windows
    • macOS (DevToys 2.0)
    • Linux (DevToys 2.0)

@btiteux btiteux added the devtoys-v2.0 DevToys v2.0 label Dec 21, 2023
@btiteux btiteux changed the title Add DateConverter (old Timestamp Converter) to devtoys 2 Add DateConverter (old Timestamp Converter) to DevToys 2.0 Dec 21, 2023
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUICard.cs Outdated
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUICard.cs Outdated
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUICard.cs Outdated
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUICard.cs Outdated
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUIDropDownListItem.cs
Comment thread src/app/dev/DevToys.Api/Tool/GUI/Components/IUIDropDownListItem.cs
Comment thread src/app/dev/DevToys.Blazor/Components/UIElements/UICardPresenter.razor.scss Outdated
Comment thread src/app/dev/DevToys.Tools/Models/DateValueType.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Models/DateFormat.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterCommandLineTool.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverter.resx Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterCommandLineTool.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterCommandLineTool.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterCommandLineTool.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverter.resx Outdated
Comment thread src/app/dev/DevToys.Tools/Helpers/DateHelper.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Helpers/DateHelper.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterGuiTool.cs Outdated
Comment thread src/app/dev/DevToys.Tools/Tools/Converters/Date/DateConverterGuiTool.cs Outdated
@btiteux
btiteux force-pushed the dev/2.0-converters-timestamp branch from 442ce14 to 7a50696 Compare December 26, 2023 14:42

@veler veler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great, thank you very much! :D

@veler
veler merged commit a673cc7 into dev/2.0 Dec 26, 2023
@veler
veler deleted the dev/2.0-converters-timestamp branch December 26, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devtoys-v2.0 DevToys v2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unix Timestamp Converter with millisecond support .NET Ticks (timestamp) converter

2 participants