Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// GiGaHelper.h
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/8/13.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface GiGaHelper : NSObject
|
||||
/**
|
||||
* 获取当前时间 格式 yyyy-MM-dd hh:mm:ss
|
||||
*/
|
||||
|
||||
+(NSString *) getNowTimeString;
|
||||
/**
|
||||
* 时间转时间戳
|
||||
*/
|
||||
|
||||
+(long) timeStampWithDate:(NSDate *) timeDate;
|
||||
|
||||
/**
|
||||
* 时间戳转时间
|
||||
*/
|
||||
|
||||
+ (NSString *) dateWithTimeStamp:(long) longValue;
|
||||
/**
|
||||
* 根据时间间隔获取未来时间戳
|
||||
hour 几小时
|
||||
min 几分钟
|
||||
second 几秒
|
||||
*/
|
||||
+(long)getFutureTimetstamp:(NSUInteger)hour minute:(NSUInteger)min second:(NSUInteger)second;
|
||||
|
||||
/**
|
||||
* NSTimeInterval 转分钟秒
|
||||
*/
|
||||
+(NSString *)stringWithNSTimerinterval:(NSTimeInterval)interval;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user