samhuri.net-ios/Blog/NSDate+marshmallows.h
Sami Samhuri bd704e4241 implement basic editing, preview, and improve article list
- new dark look that matches samhuri.net
- improved cell layout for article list
- fix yap caching
- update service layer to match new API
- implement authentication
- fix bugs all over
- add a preview
2015-04-19 19:15:55 -07:00

22 lines
655 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;
+ (NSDate *)mm_dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour minute:(NSInteger)minute second:(NSInteger)second;
- (NSString *)mm_relativeToNow;
@end