23 lines
569 B
Objective-C
Executable File

//
// HttpManager.h
// myhome
//
// Created by hkh on 16/11/6.
//
#import <Foundation/Foundation.h>
@interface Sformat: NSObject
+ (NSString *)yyyy_MM_dd;
+ (long)timestamp;
+ (long)timestamp:(NSDate *)date;
+ (NSString *)Hex:(NSData *)data;
+ (NSDate *)DateByTimestamp:(NSString *)timestamp;
+ (NSString *)yyyy_MM_dd_HH_mm:(NSString *)timestamp;
+ (NSString *)yyyy_MM_dd_HH_mm_cn:(NSString *)timestamp;
+ (NSDate *)dateWithYearsBeforeNow:(NSInteger)year;
+ (NSDate *)dateWithMonthBeforeNow:(NSInteger)month;
+ (NSDate *)dateWithDayBeforeNow:(NSInteger)day;
@end