Ledger runs once with each command invocation, it does not stay running in
the background.

On Mon, Oct 8, 2012 at 11:17 PM, David <[email protected]> wrote:

> I tried hyphens instead of slash and its not working.
>
> > 06-01-2012 OFFICE
> Error: Invalid date: 06-01-2012
> While parsing file "Jan_to_Jun_Acct", line 28:
> While parsing transaction:
>
> Maybe I need to restart Ledger before the effects can take place?
>
>
>
>
>
>
> On Tuesday, October 9, 2012 8:42:11 AM UTC+8, Michael Norrish wrote:
>
>> Use hyphens rather than slashes?
>>
>> Michael
>>
>> On 09/10/2012, at 5:31, David <[email protected]> wrote:
>>
>>
>> I am not sure if 2 digits will work for month as I also have an error for
>> 2 digit month, as shown below.
>>
>> While parsing file "Jan_to_Jun_Acct", line 33:
>> While parsing transaction:
>> > 08/01/2012
>> Error: Invalid date: 08/01/2012
>>
>> Any other input?
>>
>> What is a good way to test and see if the new date format is working?
>>
>> David
>>
>>
>> On Tuesday, October 9, 2012 2:27:10 AM UTC+8, Craig Earls wrote:
>>>
>>> Try two digits in the month.
>>>
>>> On Mon, Oct 8, 2012 at 10:38 AM, David <[email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> I did update my my ledgerrc file.
>>>>
>>>> Below is the output of the .ledgerrc file;-
>>>>
>>>> home/david# cat .ledgerrc
>>>> --input-date-format %d-%m-%Y
>>>> --date-format %d-%m-%Y
>>>>
>>>> I cant seem to get the date format updated and keep getting the error
>>>> as below
>>>>
>>>> Error: Year is out of valid range: 1400..10000
>>>> While parsing file "Jan_to_Jun_Acct", line 1679:
>>>> While parsing transaction:
>>>> > 24/6/2012
>>>>
>>>>
>>>> Even tried the following command:-
>>>>
>>>> ledger -f file_name --date-format=%m/%d/%Y --input-date-format=%m/%d/%Y
>>>>
>>>> But still haven’t been able to change the format.
>>>>
>>>> Any idea what I am missing?
>>>>
>>>>
>>>> David
>>>>
>>>>
>>>>
>>>> On Monday, October 8, 2012 4:18:57 PM UTC+8, David wrote:
>>>>>
>>>>>
>>>>> Thanks for the feedback.  This certainly helps me understand how my
>>>>> .ledgerrc file should look.
>>>>>
>>>>> In the region where I reside we tend to write the dates as DD/MM/YYYY.
>>>>>
>>>>> So I guess my .ledgerrc should be :-
>>>>>
>>>>> --input-date-format %d-%m-%Y
>>>>> --date-format %d-%m-%Y
>>>>>
>>>>>
>>>>> Once again, thanks for all the input/feedback.
>>>>>
>>>>> David
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Monday, October 8, 2012 2:25:24 AM UTC+8, thierry wrote:
>>>>>>
>>>>>> FWIW, here is mine:
>>>>>>
>>>>>> $ cat ~/.ledgerrc
>>>>>> --decimal-comma
>>>>>> --file /home/thierry/thierry.ledger
>>>>>> --price-db /home/thierry/price.db
>>>>>> --start-of-week=mon
>>>>>> --current
>>>>>>
>>>>>> --
>>>>>> Thierry
>>>>>>
>>>>>
>>>
>>>
>>> --
>>> Craig, Corona De Tucson, AZ
>>> enderw88.wordpress.com
>>>
>>


-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Reply via email to