2011-05-30 23:12:56 +02:00
|
|
|
/* NSDate+MAPIStore.h - this file is part of SOGo
|
2010-10-01 20:54:30 +02:00
|
|
|
*
|
2012-08-17 21:04:57 +02:00
|
|
|
* Copyright (C) 2010-2012 Inverse inc.
|
2010-10-01 20:54:30 +02:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2010-10-18 14:57:31 +02:00
|
|
|
* the Free Software Foundation; either version 3, or (at your option)
|
2010-10-01 20:54:30 +02:00
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NSCALENDARDATE_MAPISTORE_H
|
|
|
|
#define NSCALENDARDATE_MAPISTORE_H
|
|
|
|
|
2011-05-30 23:12:56 +02:00
|
|
|
#import <Foundation/NSDate.h>
|
2010-10-01 20:54:30 +02:00
|
|
|
|
2012-07-01 22:55:54 +02:00
|
|
|
@class NSCalendarDate;
|
|
|
|
|
2011-05-30 23:12:56 +02:00
|
|
|
@interface NSDate (MAPIStoreDataTypes)
|
2010-11-06 00:21:09 +01:00
|
|
|
|
2012-07-01 22:55:54 +02:00
|
|
|
+ (NSCalendarDate *) dateFromMinutesSince1601: (uint32_t) minutes;
|
2011-03-22 22:22:34 +01:00
|
|
|
- (uint32_t) asMinutesSince1601;
|
2010-10-01 20:54:30 +02:00
|
|
|
|
2011-03-22 22:22:34 +01:00
|
|
|
+ (id) dateFromFileTime: (const struct FILETIME *) timeValue;
|
2010-10-01 20:54:30 +02:00
|
|
|
- (struct FILETIME *) asFileTimeInMemCtx: (void *) memCtx;
|
|
|
|
|
2012-03-20 19:47:05 +01:00
|
|
|
- (BOOL) isNever; /* occurs on 4500-12-31 */
|
|
|
|
|
2015-12-30 15:22:08 +01:00
|
|
|
+ (NSCalendarDate *) dateFromSystemTime: (struct SYSTEMTIME) date
|
|
|
|
andRuleYear: (uint16_t) rYear;
|
2010-10-01 20:54:30 +02:00
|
|
|
@end
|
|
|
|
|
2012-07-02 00:31:05 +02:00
|
|
|
NSComparisonResult NSDateCompare (id date1, id date2, void *);
|
2012-07-01 22:55:54 +02:00
|
|
|
|
2010-10-01 20:54:30 +02:00
|
|
|
#endif /* NSCALENDARDATE+MAPISTORE_H */
|