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

Fix documentation, make ISO date format standard in some places #1186

Merged
merged 1 commit into from
Feb 9, 2020

Conversation

schoettl
Copy link
Collaborator

@schoettl schoettl commented Feb 8, 2020

For #933

@@ -132,7 +132,7 @@ Render a journal transaction as text in the style of Ledger's print command.
Ledger 2.x's standard format looks like this:

@
yyyy/mm/dd[ *][ CODE] description......... [ ; comment...............]
yyyy-mm-dd[ *][ CODE] description......... [ ; comment...............]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not correct I think, both Ledger 2 and 3 print dates with slashes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right. But this is the documentation for the showTransaction function, so we also have to fix the sentence above my change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the above part of comment.

@@ -14,7 +14,7 @@ From timeclock.el 2.6:
A timeclock contains data in the form of a single entry per line.
Each entry has the form:

CODE YYYY/MM/DD HH:MM:SS [COMMENT]
CODE YYYY-MM-DD HH:MM:SS [COMMENT]
Copy link
Owner

@simonmichael simonmichael Feb 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.ledger-cli.org/3.0/doc/ledger3.html#Time-Keeping says it contains slashes, but Ledger reads slash or dash or dot, like hledger. Emacs' timeclock.el requires slashes. I can tweak this comment later maybe.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted this change for now, to keep the compatibility to the original doc and Emacs.

@schoettl schoettl force-pushed the fix/iso-date-format branch from ff0d276 to d27f521 Compare February 9, 2020 12:00
@simonmichael simonmichael merged commit 50acfc9 into simonmichael:master Feb 9, 2020
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