|
// Created by EasyIOS on 14-4-10.
// Copyright (c) 2014年 zhuchao. All rights reserved.
//
#import <Foundation/Foundation.h>
extern const NSInteger SECOND;
extern const NSInteger MINUTE;
extern const NSInteger HOUR;
extern const NSInteger DAY;
extern const NSInteger MONTH;
extern const NSInteger YEAR;
@interface NSDate(EasyExtend)
@property (nonatomic, readonly) NSInteger year;
@property (nonatomic, readonly) NSInteger month;
@property (nonatomic, readonly) NSInteger day;
@property (nonatomic, readonly) NSInteger hour;
@property (nonatomic, readonly) NSInteger minute;
@property (nonatomic, readonly) NSInteger second;
@property (nonatomic, readonly) NSInteger weekday;
- (NSString *)stringWithDateFormat:(NSString *)format;
- (NSString *)timeAgo;
- (NSString *)timeLeft;
+ (long long)timeStamp;
+ (NSDate *)dateWithString:(NSString *)string format:(NSString*)format;
+ (NSDate *)now;
+ (NSString*)stringTimeInterval:(NSInteger)longTime;
+ (NSString*)stringHourAndMinute:(NSInteger)longTime;
+ (NSString*)homeChartStringHourAndMinute:(NSInteger)longTime;
@end
|