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 duration support #75

Merged
merged 2 commits into from Jan 29, 2024
Merged

Add duration support #75

merged 2 commits into from Jan 29, 2024

Conversation

alanvgreen
Copy link

Hi! This is an implementation of a time of day / duration data type, somewhat similar to what was requested in #45.

It uses formatting directive ';hm' for hours and minutes. Org mode uses ';u'. ';hm' seems better to me because it matches ';dt', but I'd be happy enough with either ';hm' or ';u'.

Values in the format hh:mm are assumed to be durations expressed as
hours and minutes. They may also be used as a time of day - for example,
14:00 for 2pm).

Includes a new formatting directive ";hm" to specify output as hours and
minutes.
Adds an example showing how one might use hour-and-minute duration
values as a time of day.
@tgrosinger
Copy link
Owner

This is great, thank you!

@tgrosinger tgrosinger merged commit 700b958 into tgrosinger:main Jan 29, 2024
@alanvgreen alanvgreen deleted the add-time branch March 9, 2024 03:06
@alanvgreen
Copy link
Author

Thank you for such a helpful plugin - I learned quite a lot from reading your code :D

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

2 participants