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 Time Difference Operation - Return the time that has passed between two input DateTimes #1779

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tomgond
Copy link
Contributor

@tomgond tomgond commented Apr 3, 2024

Given two input datetime, calculate and return the time that has passed between them.
Example:
Input:
03/05/2024 13:03:22
03/05/2025 13:04:22
Output:
Years:0 Months:0 Days:0 Hours:0 Minutes:1 Seconds:0

Convenient for example when given a log file with events happening in different times, and you want to know how much time has passed between the events.
I am welcome for changes / comment.

We do not want ":" since it's common in time strings. Same goes for space.
Allow to calculate the time between two input DateTimes (with delimiter between them).
trailing newlines are ignored.
Error is raised when needed.
Output can be positive or negative depending on the order of the input.
"Vigenère Encode",
"Vigenère Decode",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant