Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions DateTools/DateTools/NSDate+DateTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ -(NSInteger)daysFrom:(NSDate *)date calendar:(NSCalendar *)calendar{
/**
* Returns the number of years until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return NSInteger representiation of years
* @return NSInteger representation of years
*/
-(NSInteger)yearsUntil{
return [self yearsLaterThan:[NSDate date]];
Expand All @@ -1229,7 +1229,7 @@ -(NSInteger)yearsUntil{
/**
* Returns the number of months until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return NSInteger representiation of months
* @return NSInteger representation of months
*/
-(NSInteger)monthsUntil{
return [self monthsLaterThan:[NSDate date]];
Expand All @@ -1238,7 +1238,7 @@ -(NSInteger)monthsUntil{
/**
* Returns the number of weeks until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return NSInteger representiation of weeks
* @return NSInteger representation of weeks
*/
-(NSInteger)weeksUntil{
return [self weeksLaterThan:[NSDate date]];
Expand All @@ -1247,7 +1247,7 @@ -(NSInteger)weeksUntil{
/**
* Returns the number of days until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return NSInteger representiation of days
* @return NSInteger representation of days
*/
-(NSInteger)daysUntil{
return [self daysLaterThan:[NSDate date]];
Expand All @@ -1256,7 +1256,7 @@ -(NSInteger)daysUntil{
/**
* Returns the number of hours until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return double representiation of hours
* @return double representation of hours
*/
-(double)hoursUntil{
return [self hoursLaterThan:[NSDate date]];
Expand All @@ -1265,7 +1265,7 @@ -(double)hoursUntil{
/**
* Returns the number of minutes until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return double representiation of minutes
* @return double representation of minutes
*/
-(double)minutesUntil{
return [self minutesLaterThan:[NSDate date]];
Expand All @@ -1274,7 +1274,7 @@ -(double)minutesUntil{
/**
* Returns the number of seconds until the receiver's date. Returns 0 if the receiver is the same or earlier than now.
*
* @return double representiation of seconds
* @return double representation of seconds
*/
-(double)secondsUntil{
return [self secondsLaterThan:[NSDate date]];
Expand All @@ -1284,7 +1284,7 @@ -(double)secondsUntil{
/**
* Returns the number of years the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return NSInteger representiation of years
* @return NSInteger representation of years
*/
-(NSInteger)yearsAgo{
return [self yearsEarlierThan:[NSDate date]];
Expand All @@ -1293,7 +1293,7 @@ -(NSInteger)yearsAgo{
/**
* Returns the number of months the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return NSInteger representiation of months
* @return NSInteger representation of months
*/
-(NSInteger)monthsAgo{
return [self monthsEarlierThan:[NSDate date]];
Expand All @@ -1302,7 +1302,7 @@ -(NSInteger)monthsAgo{
/**
* Returns the number of weeks the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return NSInteger representiation of weeks
* @return NSInteger representation of weeks
*/
-(NSInteger)weeksAgo{
return [self weeksEarlierThan:[NSDate date]];
Expand All @@ -1311,7 +1311,7 @@ -(NSInteger)weeksAgo{
/**
* Returns the number of days the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return NSInteger representiation of days
* @return NSInteger representation of days
*/
-(NSInteger)daysAgo{
return [self daysEarlierThan:[NSDate date]];
Expand All @@ -1320,7 +1320,7 @@ -(NSInteger)daysAgo{
/**
* Returns the number of hours the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return double representiation of hours
* @return double representation of hours
*/
-(double)hoursAgo{
return [self hoursEarlierThan:[NSDate date]];
Expand All @@ -1329,7 +1329,7 @@ -(double)hoursAgo{
/**
* Returns the number of minutes the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return double representiation of minutes
* @return double representation of minutes
*/
-(double)minutesAgo{
return [self minutesEarlierThan:[NSDate date]];
Expand All @@ -1338,7 +1338,7 @@ -(double)minutesAgo{
/**
* Returns the number of seconds the receiver's date is earlier than now. Returns 0 if the receiver is the same or later than now.
*
* @return double representiation of seconds
* @return double representation of seconds
*/
-(double)secondsAgo{
return [self secondsEarlierThan:[NSDate date]];
Expand Down