From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Util/Category/NSDateFormatter+Category.m | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Util/Category/NSDateFormatter+Category.m b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Util/Category/NSDateFormatter+Category.m new file mode 100755 index 0000000..3d9a35e --- /dev/null +++ b/screendisplay/Pods/EaseUI/EaseUI/EMUIKit/Util/Category/NSDateFormatter+Category.m @@ -0,0 +1,34 @@ +/************************************************************ + * * Hyphenate CONFIDENTIAL + * __________________ + * Copyright (C) 2016 Hyphenate Inc. All rights reserved. + * + * NOTICE: All information contained herein is, and remains + * the property of Hyphenate Inc. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Hyphenate Inc. + */ + +#import "NSDateFormatter+Category.h" + +@implementation NSDateFormatter (Category) + ++ (id)dateFormatter +{ + return [[self alloc] init]; +} + ++ (id)dateFormatterWithFormat:(NSString *)dateFormat +{ + NSDateFormatter *dateFormatter = [[self alloc] init]; + dateFormatter.dateFormat = dateFormat; + return dateFormatter; +} + ++ (id)defaultDateFormatter +{ + return [self dateFormatterWithFormat:@"yyyy-MM-dd HH:mm:ss"]; +} + +@end -- Gitblit v1.8.0