- String: test cases for numerical conversion
- String: Implement String != regex operator
- String: index and rindex methods with String argument
+- String: format operator % like in python
+- String: split and join
+- String: assign fstream objects to read and write a file
- date: test parser for invalid dates and syntax errors
- date: Parser for stream input
- UTC: Convert to and from time_t, struct tm
-- Add classes: configuration, amount
+- Add classes: xml, configuration, amount
hour.cpp utc.cpp \
Integer.cpp
-libACL_la_LDFLAGS = -version-info 0:2:0
+libACL_la_LDFLAGS = -version-info 2:2:0
include_HEADERS = String.h date.h Integer.h
int Leap(void);
unsigned DaysInMonth();
unsigned YearDay();
+ int WeekDay()
+ {
+ return julian() % 7 + 1;
+ }
// TODO:YearDay WeekDay WeekNumber DayName
// date operator*(double)
std::cout << d0 << " YearDay = " << d0.YearDay() << "\n";
std::cout.flush();
assert(d0.YearDay() == 160);
+ std::cout << d0 << " WeekDay = " << d0.WeekDay() << "\n";
date d1(9, 6, 2020);
std::cout << d1 << " Leap = " << d1.Leap() << "\n";
date d5(1, 2, 2019);
std::cout << d5.MonthName() << " " << d5.Year() << " has " << d5.DaysInMonth() << " days.\n";
assert(d5.DaysInMonth() == 28);
+ std::cout << d5 << " WeekDay = " << d5.WeekDay() << "\n";
date d6(1, 2, 2020);
std::cout << d6.MonthName() << " " << d6.Year() << " has " << d6.DaysInMonth() << " days.\n";
std::cout.flush();
assert(d6.YearDay() == 32);
+ std::cout << d6 << " WeekDay = " << d6.WeekDay() << "\n";
return 0;
}