This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joakim Bodin
committed
May 18, 2009
1 parent
109c5ed
commit aff6ed5
Showing
4 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import "Three20/TTGlobal.h" | ||
|
||
/////////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
@implementation NSDate (TTCategory) | ||
|
||
+ (id)dateWithToday { | ||
NSString* format = @"%Y-%m-%d 00:00:00 +0700"; | ||
NSString* time = [[NSDate date] descriptionWithCalendarFormat:format timeZone:nil locale:nil]; | ||
return [self dateWithString:time]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface NSDate (TTCategory) | ||
|
||
+ (id)dateWithToday; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface NSString (TTCategory) | ||
|
||
- (BOOL)isWhitespace; | ||
|
||
- (NSDictionary*)queryDictionaryUsingEncoding: (NSStringEncoding)encoding; | ||
|
||
@end |