22 lines
439 B
Objective-C
22 lines
439 B
Objective-C
//
|
|
// Example
|
|
// man
|
|
//
|
|
// Created by man 11/11/2018.
|
|
// Copyright © 2020 man. All rights reserved.
|
|
//
|
|
|
|
#import "_OCLoggerFormat.h"
|
|
|
|
@implementation _OCLoggerFormat
|
|
|
|
+ (NSString *)formatDate:(NSDate *)date
|
|
{
|
|
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
|
|
formatter.timeZone = [NSTimeZone systemTimeZone];
|
|
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.SSS";
|
|
return [formatter stringFromDate:date];
|
|
}
|
|
|
|
@end
|