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

front: drop calculateTimeDifferenceInSeconds() and datetime2string() #10843

Merged
merged 5 commits into from
Feb 18, 2025

Conversation

emersion
Copy link
Member

See individual commits.

This is more type-safe, and will allow us to manipulate the value
with Duration helpers.

Signed-off-by: Simon Ser <[email protected]>
Useful for the next commit.

Signed-off-by: Simon Ser <[email protected]>
Replace number operations and unit conversions with Duration
operations.

This is the only user of calculateTimeDifferenceInSeconds(). That
function duplicates the functionality of Duration.subtractDate().

Signed-off-by: Simon Ser <[email protected]>
This is now unused.

Signed-off-by: Simon Ser <[email protected]>
This is unused.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion requested review from Math-R and Akctarus February 18, 2025 12:06
@emersion emersion requested a review from a team as a code owner February 18, 2025 12:06
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 18, 2025
@emersion emersion self-assigned this Feb 18, 2025
Copy link
Contributor

@Math-R Math-R left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

tested, lgtm :)

@emersion emersion added this pull request to the merge queue Feb 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2025
@emersion emersion added this pull request to the merge queue Feb 18, 2025
Merged via the queue into dev with commit 003ccae Feb 18, 2025
27 checks passed
@emersion emersion deleted the emr/drop-time-diff-in-secs branch February 18, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants