-
Notifications
You must be signed in to change notification settings - Fork 41
/
NSDate+NiceFormats.h
43 lines (34 loc) · 985 Bytes
/
NSDate+NiceFormats.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#import <Cocoa/Cocoa.h>
@interface NSDate (NiceFormats)
/*!
@brief Returns a string representation of the receiver formatted
with medium date style and short time style
*/
- (NSString*)medDateShortTimeString ;
/*!
@brief Returns a string representation of the receiver formatted
as "YYYY-MM-DD HH:mm:ss"
*/
- (NSString*)geekDateTimeString ;
/*!
@brief Returns a string representation of the receiver formatted
as @"YYYY-MM-DD HH:mm:ss.SSS", where SSS is milliseconds.
*/
- (NSString*)geekDateTimeStringMilli ;
/*!
@brief Returns a string representation of the receiver formatted
as @"HH:mm:ss".
*/
- (NSString*)hourMinuteSecond ;
/*!
@brief Returns a string representation of the receiver formatted
as YYYYMMDDHHmmss±HHmm
@details The result may be used in file names.
*/
- (NSString*)compactDateTimeString ;
/*!
@brief Returns the current date as formatted by
-medDateShortTimeString
*/
+ (NSString*)currentDateFormattedConcisely ;
@end