Documentation

- Corrected use of "reportdateformat" in taskrc.5 to "dateformat.report".
- Corrected duplicate comment in Config.cpp defaults.
This commit is contained in:
Paul Beckingham
2010-10-23 15:02:28 -04:00
parent f74bed4355
commit ca6bfeb2f2
2 changed files with 5 additions and 5 deletions

View File

@@ -335,8 +335,8 @@ the 'history' report, for example, or 'export'.
.B report.X.dateformat=m/d/Y .B report.X.dateformat=m/d/Y
This is a string of characters that define how taskwarrior formats date values. This is a string of characters that define how taskwarrior formats date values.
The precedence order for the configuration variable is report.X.dateformat then The precedence order for the configuration variable is report.X.dateformat then
reportdateformat then dateformat. While report.X.dateformat only formats the dateformat.report then dateformat. While report.X.dateformat only formats the
due date in reports, reportdateformat formats the due date both in reports due date in reports, dateformat.report formats the due date both in reports
and "task info". If both of these are not set then dateformat will be applied and "task info". If both of these are not set then dateformat will be applied
to the due date. Entered dates as well as all other displayed dates in reports to the due date. Entered dates as well as all other displayed dates in reports
are formatted according to dateformat. are formatted according to dateformat.
@@ -392,7 +392,7 @@ M-D-Y would use for input and output 07-24-2009
.RE .RE
.RS .RS
Examples for other values of reportdateformat: Examples for other values of dateformat.report:
.RE .RE
.RS .RS
@@ -850,7 +850,7 @@ criteria are displayed in the generated report.
.TP .TP
.B report.X.dateformat .B report.X.dateformat
This adds a dateformat to the report X that will be used by the "due date" This adds a dateformat to the report X that will be used by the "due date"
column. If it is not set then reportdateformat and dateformat will be used in column. If it is not set then dateformat.report and dateformat will be used in
this order. See the this order. See the
.B DATES .B DATES
section for details on the sequence placeholders. section for details on the sequence placeholders.

View File

@@ -85,7 +85,7 @@ std::string Config::defaults =
"dateformat=m/d/Y # Preferred input and display date format\n" "dateformat=m/d/Y # Preferred input and display date format\n"
"dateformat.holiday=YMD # Preferred input date format for holidays\n" "dateformat.holiday=YMD # Preferred input date format for holidays\n"
"dateformat.report=m/d/Y # Preferred display date format for reports\n" "dateformat.report=m/d/Y # Preferred display date format for reports\n"
"dateformat.annotation=m/d/Y # Preferred display date format for reports\n" "dateformat.annotation=m/d/Y # Preferred display date format for annotations\n"
"weekstart=Sunday # Sunday or Monday only\n" "weekstart=Sunday # Sunday or Monday only\n"
"displayweeknumber=yes # Show week numbers on calendar\n" "displayweeknumber=yes # Show week numbers on calendar\n"
"due=7 # Task is considered due in 7 days\n" "due=7 # Task is considered due in 7 days\n"