NSDate(KSTExtensions)

@interface NSDate (KSTExtensions)

/**
 Returns the day component from a NSDateComponents created from the receiver.
 
 @return The day of the receiver
 */
- (NSInteger)KST_day;
/**
 Returns the month component from a NSDateComponents created from the receiver.
 
 @return The month of the receiver
 */
- (NSInteger)KST_month;
/**
 Returns the year component from a NSDateComponents created from the receiver.
 
 @return The year of the receiver
 */
- (NSInteger)KST_year;

/**
 Returns a NSDate representing the beginning of the day, which is 12:00:00 AM.
 
 @return The beginning of the day date
 */
- (NSDate *)KST_beginningOfDay;
/**
 Returns a NSDate representing the end of the day, which is 11:59:59 PM.
 
 @return The end of the day date
 */
- (NSDate *)KST_endOfDay;

@end

Undocumented

  • Returns the day component from a NSDateComponents created from the receiver.

    Declaration

    Objective-C

    - (NSInteger)KST_day;

    Return Value

    The day of the receiver

  • Returns the month component from a NSDateComponents created from the receiver.

    Declaration

    Objective-C

    - (NSInteger)KST_month;

    Return Value

    The month of the receiver

  • Returns the year component from a NSDateComponents created from the receiver.

    Declaration

    Objective-C

    - (NSInteger)KST_year;

    Return Value

    The year of the receiver

  • Returns a NSDate representing the beginning of the day, which is 12:00:00 AM.

    Declaration

    Objective-C

    - (nonnull NSDate *)KST_beginningOfDay;

    Return Value

    The beginning of the day date

  • Returns a NSDate representing the end of the day, which is 11:59:59 PM.

    Declaration

    Objective-C

    - (nonnull NSDate *)KST_endOfDay;

    Return Value

    The end of the day date