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.
26 lines
502 B
26 lines
502 B
1 year ago
|
//
|
||
|
// 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
|