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

Add extra date helpers #15682

Merged
merged 6 commits into from
Mar 6, 2025
Merged

Add extra date helpers #15682

merged 6 commits into from
Mar 6, 2025

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Mar 6, 2025

Description

Add two extra date helpers:

  1. difference: Gets the difference between two dates, in milliseconds. Pass a third parameter to adjust the unit measurement.
image image
  1. durationFromNow: Produce a humanized duration left/until given an amount of time and the type of time measurement.
image

Launchcontrol

Add two extra date helpers

Copy link

qa-wolf bot commented Mar 6, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Mar 6, 2025
@adrinr adrinr requested review from samwho, mike12345567 and PClmnt March 6, 2025 10:49
@adrinr adrinr merged commit 7f91381 into master Mar 6, 2025
22 checks passed
@adrinr adrinr deleted the labday/add-date-helpers branch March 6, 2025 12:56
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants