- Add MonthSymbol
This commit is contained in:
1 parent
8c1d167efa
commit
b0743ab730
56 files changed
+1734
-1357
No files matched your search
@@ -99,6 +99,7 @@ static NSString *kNSDateHelperFormatSQLDateWithTimeEN_shashSeparated = @"
|
||||
+ (NSString *) stringForDisplayFromDate:(NSDate *) date;
|
||||
+ (NSString *) stringForDisplayFromDate:(NSDate *) date prefixed:(BOOL) prefixed;
|
||||
+ (NSString *) stringForDisplayFromDate:(NSDate *) date prefixed:(BOOL) prefixed alwaysDisplayTime:(BOOL)displayTime;
|
||||
- (NSString *) monthSymbol;
|
||||
- (NSString *) string;
|
||||
- (NSString *) stringWithFormat:(NSString *) format;
|
||||
- (NSString *) stringWithFormat:(NSString *) format timeZone:(NSTimeZone*) timezone;
|
||||
|
||||
@@ -139,6 +139,11 @@ static NSDateFormatter *_displayFormatter = nil;
|
||||
return -[self timeIntervalSinceDate:anotherDate];
|
||||
}
|
||||
|
||||
- (NSString *) monthSymbol {
|
||||
|
||||
return [[[NSDate sharedDateFormatter] monthSymbols] objectAtIndex:([self month]-1)];
|
||||
}
|
||||
|
||||
-(NSDate *) toLocalTime
|
||||
{
|
||||
NSTimeZone *tz = [NSTimeZone defaultTimeZone];
|
||||
@@ -1190,4 +1195,4 @@ static NSDateFormatter *_displayFormatter = nil;
|
||||
}
|
||||
return @"";
|
||||
}
|
||||
@end
|
||||
@end
|
||||
Reference in new issue
Block a user