Re: Time tracking: time formatting and hourly rates

2022-05-26 Thread Carl Tappan
Thanks folks, sounds like preprocessing is the way to go. Easy enough, I
just didn't want to reinvent the wheel.
Carl

On Wed, May 25, 2022 at 2:43 PM John Wiegley  wrote:

> > "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/CAFNQEv66XWrvyiePvpVVnEbRRwRevH%3DRLpz8X3GOAxFj0DEtsQ%40mail.gmail.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.