
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
60 lines
1.3 KiB
Objective-C
60 lines
1.3 KiB
Objective-C
//
|
|
// PLTimeUtil.h
|
|
// YYMobile
|
|
//
|
|
// Created by penglong on 14/10/28.
|
|
// Copyright (c) 2014年 YY.inc. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface PLTimeUtil : PIBaseModel
|
|
|
|
/**
|
|
* 根据秒数获取倒计时时间
|
|
*
|
|
* @param second 秒
|
|
*
|
|
* @return 格式为 01:02:00
|
|
*/
|
|
+ (NSString *)getTimeWithSecond:(NSUInteger)second;
|
|
|
|
+ (NSDate *)getDateWithCompleteTime:(NSString *)time;
|
|
|
|
+ (NSDate *)getDateWithTime:(NSString *)time;
|
|
|
|
+ (NSDate *)getDateWithYmd:(NSString *)time;
|
|
|
|
+ (NSString *)getDateWithHHMMSS:(NSString *)time;
|
|
|
|
+ (NSString *)getDateWithYYMMDD:(NSString *)time;
|
|
|
|
+ (NSString *)getDateWitMMDDHHSS:(NSString *)time;
|
|
|
|
+ (NSString *)getDateWithYYMM:(NSString *)time;
|
|
|
|
+ (NSString *)getDateWithMMDD:(NSString *)time;
|
|
|
|
+ (NSDate *)getDateWithYearMonthDay:(NSString *)time;
|
|
|
|
+ (NSString *)getMonthDayContent:(NSDate *)date;
|
|
|
|
+ (NSString *)getYYMMWithDate:(NSDate *)date;
|
|
|
|
+ (NSString *)getYYMMDDWithDate:(NSDate *)date;
|
|
|
|
+ (NSString *)getYYMMDDWithDateFormatter:(NSDate *)date;
|
|
|
|
+ (NSString *)getDateWithTotalTimeWith:(NSString *)time;
|
|
|
|
+ (NSString *)getNowTimeTimestampMillisecond;
|
|
|
|
///比较两个时间的差值
|
|
+ (NSDateComponents *)compareTwoDate:(NSDate *)firstDate secondDate:(NSDate *)secondDate;
|
|
|
|
///计算年龄
|
|
+ (NSInteger)ageWithDateFromBirth:(NSInteger)birth;
|
|
|
|
@end
|
|
|