Re: Are you using bracketed dates in comments ?

2022-05-25 Thread Simon Michael

On 5/23/22 15:46, Martin Michlmayr wrote:

* Alan  [2022-05-23 18:32]:

Referring to the "Bountiful Blessings" example in the Effective Dates manual
, if you
say `ledger --effective register Groceries` you get the proper effective
dates. If you instead say `ledger --effective register Checking` you would
get just the one date, 2008/10/16, which makes sense now that I think about
it. But I was somehow expecting/hoping that it would show separate lines in
the Checking register, with the same effective dates from the Expenses
lines.


If you want to same effective date for checking and expenses, you have
to add the effective date on the transaction header:

2020-05-20=2020-02-03 * Foo

You probably have it on the posting using the ; [...] syntax.  If you
do this, it only applies to the posting.

In other words: there are two ways to specify effective dates, one is
for the whole transaction and one is only for a posting.


My recollection (and it could be wrong, I haven't checked docs or tested 
with Ledger) is:


; [DATE]; sets posting date
; [=EDATE]  ; sets posting effective date
; [DATE=EDATE]  ; sets both posting dates

--

--- 
You received this message because you are subscribed to the Google Groups "Ledger" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/fb23a977-35ce-79c3-1f30-fb16c43ce000%40joyful.com.


Re: Time tracking: time formatting and hourly rates

2022-05-25 Thread Colin Dean
I've used timetracking mode extensively for about a decade now. I'm always 
learning new things about ledger but I feel I've got a lot of experience 
with that particular mode because I've been using it to track my time for 
more than half of my professional life ;-)

Unfortunately, you have to enter the time in fill HH:MM:SS. I've not found 
an option that enables eliding the seconds.

JW will probably respond with input on the latter.
On Wednesday, May 25, 2022 at 12:48:02 PM UTC-4 Carl Tappan wrote:

> Hi,
>
> I'm trying to set up a minimal time tracking system with ledger and have 
> two questions.
>
> 1.) Is it possible to enter time in "HH:MM" format? Converting to decimal 
> hours is clunky, and the various timeclock options don't fit my workflow 
> well. I know that I can add a timelog entry with "time in" and "time out", 
> but ideally I'd be able to post directly to the account.
>
> 2.) Is it possible to define an hourly rate in a price history file, or 
> some other persistent way that doesn't require recording each entry as xx.yyh 
> @ $ ? The documentation implies under 3.4.2 that time is just a 
> commodity, but setting a price as P h $ doesn't seem to work. If I 
> log in units of 'hours' instead of 'h' then defining P hour $ works 
> as expected, but I think that breaks the predefined equivalencies between 
> different time units.
>
> Thanks for any advice, and sorry if this I missed this somewhere in the 
> docs or discussion history.
>
> Best,
> Carl
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/e7819eb0-6ac3-43bb-ac79-469f21d43a97n%40googlegroups.com.


Re: Time tracking: time formatting and hourly rates

2022-05-25 Thread John Wiegley
> "CT" == Carl Tappan  writes:

CT> 1.) Is it possible to enter time in "HH:MM" format? Converting to decimal
CT> hours is clunky, and the various timeclock options don't fit my workflow
CT> well. I know that I can add a timelog entry with "time in" and "time out",
CT> but ideally I'd be able to post directly to the account.

You won't be able to use such a syntax to express durations of time, but what
you COULD do is use the format you'd like and then write a processing script
to convert those HH:MM entries into seconds.

CT> 2.) Is it possible to define an hourly rate in a price history file, or
CT> some other persistent way that doesn't require recording each entry as
CT> xx.yyh @ $ ? The documentation implies under 3.4.2 that time is just
CT> a commodity, but setting a price as P h $ doesn't seem to work. If I
CT> log in units of 'hours' instead of 'h' then defining P hour $ works
CT> as expected, but I think that breaks the predefined equivalencies between
CT> different time units.

Price histories work differently from associating a conversion value with a
posting. I don't think the "P" directive will ever fully do what you'd wish
here.

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2czg1xxkb.fsf%40newartisans.com.


Time tracking: time formatting and hourly rates

2022-05-25 Thread Carl Tappan
 Hi,

I'm trying to set up a minimal time tracking system with ledger and have 
two questions.

1.) Is it possible to enter time in "HH:MM" format? Converting to decimal 
hours is clunky, and the various timeclock options don't fit my workflow 
well. I know that I can add a timelog entry with "time in" and "time out", 
but ideally I'd be able to post directly to the account.

2.) Is it possible to define an hourly rate in a price history file, or 
some other persistent way that doesn't require recording each entry as xx.yyh 
@ $ ? The documentation implies under 3.4.2 that time is just a 
commodity, but setting a price as P h $ doesn't seem to work. If I 
log in units of 'hours' instead of 'h' then defining P hour $ works 
as expected, but I think that breaks the predefined equivalencies between 
different time units.

Thanks for any advice, and sorry if this I missed this somewhere in the 
docs or discussion history.

Best,
Carl

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/143ab5ea-63a4-451c-967c-d55b1d0acbcfn%40googlegroups.com.