mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-06 03:55:26 +00:00
Monotone-Parent: c37d20558aab1e595ecc94449329012e816a91e0
Monotone-Revision: 8fda9dc133b4eae440b311a371fc6bfced15fb8e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-02T21:49:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
// $Id: UIxCalMonthView.m 191 2004-08-12 16:28:32Z helge $
|
||||
|
||||
#include <SOGo/NSCalendarDate+SOGo.h>
|
||||
#include "UIxCalMonthView.h"
|
||||
#include "common.h"
|
||||
|
||||
@implementation UIxCalMonthView
|
||||
|
||||
- (NSCalendarDate *)startOfMonth {
|
||||
return [[[super startDate] firstDayOfMonth] beginOfDay];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *)startDate {
|
||||
return [[self startOfMonth] mondayOfWeek];
|
||||
}
|
||||
|
||||
- (NSCalendarDate *)endDate {
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [self startOfMonth];
|
||||
date = [date dateByAddingYears:0 months:0 days:[date numberOfDaysInMonth]
|
||||
hours:0 minutes:0 seconds:0];
|
||||
date = [[date sundayOfWeek] endOfDay];
|
||||
return date;
|
||||
}
|
||||
|
||||
/* URLs */
|
||||
|
||||
- (NSDictionary *)prevMonthQueryParameters {
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [[self startOfMonth] dateByAddingYears:0 months:-1 days:0
|
||||
hours:0 minutes:0 seconds:0];
|
||||
return [self queryParametersBySettingSelectedDate:date];
|
||||
}
|
||||
|
||||
- (NSDictionary *)nextMonthQueryParameters {
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [[self startOfMonth] dateByAddingYears:0 months:1 days:0
|
||||
hours:0 minutes:0 seconds:0];
|
||||
return [self queryParametersBySettingSelectedDate:date];
|
||||
}
|
||||
|
||||
@end /* UIxCalMonthView */
|
||||
Reference in New Issue
Block a user