You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
502 B
25 lines
502 B
// |
|
// NSDate+convenience.h |
|
// |
|
// Created by in 't Veen Tjeerd on 4/23/12. |
|
// Copyright (c) 2012 Vurig Media. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
|
|
@interface NSDate (Convenience) |
|
|
|
-(NSDate *)offsetMonth:(int)numMonths; |
|
-(NSDate *)offsetDay:(int)numDays; |
|
-(NSDate *)offsetHours:(int)hours; |
|
-(int)numDaysInMonth; |
|
-(int)firstWeekDayInMonth; |
|
-(int)year; |
|
-(int)month; |
|
-(int)day; |
|
|
|
+(NSDate *)dateStartOfDay:(NSDate *)date; |
|
+(NSDate *)dateStartOfWeek; |
|
+(NSDate *)dateEndOfWeek; |
|
|
|
@end
|
|
|