- Date class now supports relative dates for construction (tomorrow, friday, eoy ...)

- Added unit tests for Date enhancements
- Added unit tests for duration recognition
- Task parsing now supports due: using relative dates
- Task parsing now supports recur: and until: attributes
- Task parsing now support private attributes base: and range:
This commit is contained in:
Paul Beckingham
2008-07-04 17:18:01 -04:00
parent 00b7a5f1b4
commit 06d595d944
11 changed files with 421 additions and 88 deletions

View File

@@ -32,6 +32,7 @@
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include "Date.h"
#include "Table.h"
#include "task.h"
#include "../auto.h"
@@ -236,3 +237,18 @@ const std::string uuid ()
#endif
////////////////////////////////////////////////////////////////////////////////
// Recognize the following constructs, and return the number of days represented
int convertDuration (const std::string& input)
{
// TODO
return 0;
}
////////////////////////////////////////////////////////////////////////////////
Date convertRelativeDate (const std::string& input)
{
// TODO
return Date ();
}
////////////////////////////////////////////////////////////////////////////////