单军华
2017-02-22 8e680a1593ca22c8d3fb8a79180f06df4c4ca681
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  dateTimeHelper.m
//  MobileProject
//
//  Created by wujunyang on 16/7/20.
//  Copyright © 2016年 wujunyang. All rights reserved.
//
 
#import "dateTimeHelper.h"
 
@implementation dateTimeHelper
 
+ (NSString *)htcTimeToLocationStr:(NSDate*)curDate
{
    if (curDate==nil) {
        return @"";
    }
    NSDateFormatter* dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *fixString = [dateFormatter stringFromDate:curDate];
    return fixString;
}
 
@end