forked from erica/NSDate-Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimeFormatters.h
61 lines (45 loc) · 1.33 KB
/
TimeFormatters.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Dustin Voss
BSD License, Use at your own risk
*/
#import <Foundation/Foundation.h>
typedef enum IntervalFormatterStyle {
kIntervalFormatterDecimalStyle,
kIntervalFormatterShortStyle,
kIntervalFormatterMediumStyle,
kIntervalFormatterAbbrLongStyle,
kIntervalFormatterLongStyle
} IntervalFormatterStyle;
@interface IntervalFormatter : NSFormatter {
IntervalFormatterStyle style;
}
@property (nonatomic, assign) IntervalFormatterStyle style;
@end
@interface DateComponentsFormatter : NSFormatter {
NSDateFormatter *formatter;
NSDateFormatterStyle dateStyle;
NSDateFormatterStyle timeStyle;
}
@property (nonatomic, assign) NSDateFormatterStyle dateStyle;
@property (nonatomic, assign) NSDateFormatterStyle timeStyle;
@end
@interface IntervalComponentsFormatter : NSFormatter {
IntervalFormatterStyle style;
}
@property (nonatomic, assign) IntervalFormatterStyle style;
@end
@interface MinutesFormatter : NSFormatter {
IntervalFormatterStyle style;
}
@property (nonatomic, assign) IntervalFormatterStyle style;
@end
@interface HoursFormatter : NSFormatter {
IntervalFormatterStyle style;
}
@property (nonatomic, assign) IntervalFormatterStyle style;
@end
@interface DaysFormatter : NSFormatter {
IntervalFormatterStyle style;
}
@property (nonatomic, assign) IntervalFormatterStyle style;
@end