Skip to content

add --conv option to diff command#20

Merged
jftuga merged 1 commit intomainfrom
add-conv-to-diff
Nov 16, 2024
Merged

add --conv option to diff command#20
jftuga merged 1 commit intomainfrom
add-conv-to-diff

Conversation

@jftuga
Copy link
Copy Markdown
Owner

@jftuga jftuga commented Nov 16, 2024

Adds new functionality, --conv to diff command:

$ dtmate diff now "2024-12-01 12:00"
2 weeks 1 day 5 minutes 8 seconds

$ dtmate diff now "2024-12-01 12:00" --conv hms
360 hours 5 minutes 8 seconds

Before this additon, you would have needed to also run dtmate conv to get the same result:

$ dtmate diff now "2024-12-01 12:00"
2 weeks 1 day 5 minutes 8 seconds

$ dtmate conv "2 weeks 1 day 5 minutes 8 seconds" hms
360 hours 5 minutes 8 seconds

@ccoVeille could you please review this PR?

@jftuga jftuga merged commit 3dd3eff into main Nov 16, 2024
@jftuga jftuga deleted the add-conv-to-diff branch November 16, 2024 23:10
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.

2 participants