Restored --input-date-format option
This commit is contained in:
parent
141e60c7a7
commit
47d237e18b
2 changed files with 17 additions and 1 deletions
|
|
@ -143,7 +143,12 @@ public:
|
|||
data_files.push_back(args[1].as_string());
|
||||
});
|
||||
|
||||
OPTION(session_t, input_date_format_);
|
||||
OPTION_(session_t, input_date_format_, DO_(args) {
|
||||
// This changes the global variable inside times.h, which affects the
|
||||
// basic date parser
|
||||
input_date_format = args[1].as_string();
|
||||
});
|
||||
|
||||
OPTION(session_t, price_db_);
|
||||
OPTION(session_t, strict);
|
||||
};
|
||||
|
|
|
|||
11
test/baseline/opt-input-date-format.test
Normal file
11
test/baseline/opt-input-date-format.test
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
reg --input-date-format='%m%%%d%%%Y'
|
||||
<<<
|
||||
02%02%2007 RD VMMXX
|
||||
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
|
||||
Income:Dividends:Vanguard:VMMXX $-0.35
|
||||
>>>1
|
||||
07-Feb-02 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
|
||||
In:Di:Vanguard:VMMXX $-0.35 $-0.35
|
||||
0.350 VMMXX
|
||||
>>>2
|
||||
=== 0
|
||||
Loading…
Add table
Reference in a new issue