forked from IamChristianS/v1
-
Notifications
You must be signed in to change notification settings - Fork 0
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
480132
authored
Mar 11, 2024
1 parent
bb5199f
commit 254f6b8
Showing
1 changed file
with
25 additions
and
0 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,25 @@ | ||
/* | ||
Used to parse github's dates which kind of suck. | ||
*/ | ||
|
||
@implementation CPDate (extentions) | ||
// FIX ME: | ||
+ (CPDate)dateFromISO8601:(CPString)aString | ||
{ | ||
return new Date(); | ||
} | ||
|
||
/*! | ||
This method should return a string like | ||
"1 day ago" | ||
"1 week ago" | ||
of if it was more than ... say... 1 week ago | ||
"December 31st 2010" | ||
*/ | ||
- (CPString)friendlyDateString | ||
{ | ||
return "December 31st 2010"; | ||
} | ||
|
||
@end |