update
This commit is contained in:
21
Pods/CocoaDebug/Sources/Logs/_OCLoggerFormat.m
generated
Normal file
21
Pods/CocoaDebug/Sources/Logs/_OCLoggerFormat.m
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user