Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

imp: allow timestamp syntax in transaction dates #2233

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

Conversation

Stealthmate
Copy link

This commit makes it possible to specify timestamps in hledger transactions. For example: 2024-01-01 12:43:56+09:00. All existing logic that uses the transaction's date information has been left unchanged - that is to say, the time of day is not used anywhere yet. The intention behind this is to modify such logic in future commits/pull requests.

Furthermore, backwards compatibility with existing ledgers using plain dates has been fully preserved (barring any bugs that I missed).

ref: #117

This commit makes it possible to specify timestamps in hledger
transactions. For example: 2024-01-01 12:43:56+09:00. All existing logic
that uses the transaction's date information has been left unchanged -
that is to say, the time of day is not used anywhere yet. The intention
behind this is to modify such logic in future commits/pull requests.

Furthermore, backwards compatibility with existing ledgers using
plain dates has been fully preserved (barring any bugs that I missed).

ref: simonmichael#117
@simonmichael
Copy link
Owner

simonmichael commented Sep 25, 2024

Thanks for this @Stealthmate. When you have a chance, rebase it and fix failing checks and I'll check it out.

@simonmichael simonmichael added A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. ledger-compat labels Sep 25, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. ledger-compat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants