mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
21 lines
497 B
Objective-C
21 lines
497 B
Objective-C
//
|
|
// NSDate+marshmallows.h
|
|
// Marshmallows
|
|
//
|
|
// Created by Sami Samhuri on 11-06-18.
|
|
// Copyright 2011 Sam1 Samhuri. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
@interface NSDate (Marshmallows)
|
|
|
|
@property (nonatomic, readonly) NSInteger mm_year;
|
|
@property (nonatomic, readonly) NSInteger mm_month;
|
|
@property (nonatomic, readonly) NSInteger mm_day;
|
|
|
|
+ (NSDate *)mm_dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
|
|
- (NSString *)mm_relativeToNow;
|
|
|
|
@end
|