mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-03 10:35:25 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
- (NSCalendarDate *) dayOfWeeK: (unsigned) _day
|
||||
offsetFromSunday: (unsigned) _off;
|
||||
- (NSCalendarDate *) sundayOfWeek;
|
||||
- (NSString *) shortDateString;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user