mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
- 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
22 lines
655 B
Objective-C
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
|