On Thu, 05 Aug 1999 10:50:48 EST, the world broke into rejoicing as
"Leach Chris" <[EMAIL PROTECTED]> said:
> Problems I encounter:
> It would be nice if currency and date format could be configured
> at QIF import time. I have QIF files from different sources with
> different date formats.
> QIFIO.c has a variable gnc_qif_import_currency now we just need
> to be able to set it. I have a patch that adds gnc_qif_import_date_mmdd and
> will switch dd and mm.
It's not *all* working yet, but take a look at
gnucash/src/scm/dates-qif.scm, recently checked in.
(checkdatemaxes) takes (essentially) a list of dates, and determines
which fields correspond to Day, Month, and Year.
Consider:
- Maximum of 12 months in a year.
- Maximum of 31 days in a month.
- Year 0 must be 2000.
A typical QIF file will have enough dates as to provide an unambiguous
result based on these three "rules."
If not, mm/dd/yy appears to be the most common default.
--
Rules of the Evil Overlord #40. "Any and all magic and/or technology
that can miraculously resurrect a secondary character who has given up
his/her life through self sacrifice will be outlawed and destroyed."
[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/lsf.html>
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body