Monotone-Parent: 4413311b33917d53e558500df415e44da781815b

Monotone-Revision: c1b279e1252698e03e454f3e9d445b939afa2c43

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-04T19:23:00
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-04 19:23:00 +00:00
parent 421d03f9aa
commit d35fb1e2e0
3 changed files with 17 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-10-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/NSCalendarDate+Scheduler.m ([NSCalendarDate
-shortDateString]): new method that will return a "short date
string" (yyyymmdd) from a calendar date object.
* UI/SOGoUI/UIxComponent.m ([UIxComponent
-_cDateFromShortDateString:dateStringandShortTimeString:timeString]): new method to compute the selected date from the "day" and "hm" query parameters (if found). This method replaces the old algorithm that was found in the "selectedDate" method.
+1
View File
@@ -30,6 +30,7 @@
- (NSCalendarDate *) dayOfWeeK: (unsigned) _day
offsetFromSunday: (unsigned) _off;
- (NSCalendarDate *) sundayOfWeek;
- (NSString *) shortDateString;
@end
+12
View File
@@ -54,4 +54,16 @@
return [self dayOfWeeK:6 offsetFromSunday:1];
}
- (NSString *) shortDateString
{
NSString *str;
str = [NSString stringWithFormat: @"%.4d%.2d%.2d",
[self yearOfCommonEra],
[self monthOfYear],
[self dayOfMonth]];
return str;
}
@end