Skip to content

Files

Latest commit

 

History

History
118 lines (87 loc) · 2.13 KB

NSDate+MFExtras.md

File metadata and controls

118 lines (87 loc) · 2.13 KB

MFFoundationHeader

Utility library ( static ) based on NSFoundation
Fits for any apple system : iOS, MacOS, WatchOS, tvOS


Back to Home - Header File - Source File


NSDate+MFExtras


-dateByClearingTime


Returns the target date with hours and minutes set to 0 (GMT)

**-(NSDate*)dateByClearingTime;**


-dateBySettingHour:minute:


Returns the target date with given hour ( modulo 24 ) and minute ( modulo 60 )

**-(NSDate*)dateBySettingHour:(NSUInteger)hour minute:(NSUInteger)minute;**


-isSameDayAsDate:


Returns true if target date is the same day than given date.

**-(NSDate*)isSameDayAsDate:(NSDate*)date;**


-isSameMonthAsDate:


Returns true if target date is the same month than given date.

**-(NSDate*)isSameMonthAsDate:(NSDate*)date;**

oneMonthLater oneMonthEarlier oneDayLater oneDayEarlier secondsSinceStartOfDay components

-oneMonthLater


Returns the target date plus one month.

**-(NSDate*)oneMonthLater;**

-oneMonthEarlier


Returns the target date minus one month.

**-(NSDate*)oneMonthEarlier;**

-oneDayLater


Returns the target date plus one day.

**-(NSDate*)oneDayLater;**

-oneDayEarlier


Returns the target date minus one day.

**-(NSDate*)oneDayEarlier;**

-secondsSinceStartOfDay


Returns the number os seconds since the beginning of the day ( midnight of previous day ).

**-(NSUInteger)secondsSinceStartOfDay;**

-components:


Returns the date components, based on the current system calendar.

**-(NSDateComponents*)components;**
-------

MFFoundationFramework - ©2007-2016 Tristan Leblanc - MooseFactory Software

Back to Home