Actually I may need to rewrite that entire method in the coming days (Jordan has a specific way of doing this)


On Sep 5, 2013, at 12:18 PM, JJ Weber <notifications@github.com> wrote:

> In LFSClient/Categories/NSDate+RelativePast.m:
> 
> > +    
> > +    if (time < 1) {
> > +        return @"Now";
> > +    } else if (time < 60) {
> > +        return [NSString stringWithFormat:@"%ds", (int)time];
> > +    } else if (time < 3600) {
> > +        return [NSString stringWithFormat:@"%dm", (int)time / 60];
> > +    } else if (time < 86400) {
> > +        return [NSString stringWithFormat:@"%dh", (int)time / 3600];
> > +    } else if (time < 604800) {
> > +        return [NSString stringWithFormat:@"%dd", (int)time / 86400];
> > +    } else if (time < 31536000) {
> > +        return [NSString stringWithFormat:@"%dw", (int)time / 604800];
> > +    } else {
> > +        return [NSString stringWithFormat:@"%dy", (int)time / 31536000];
> > +        //return [NSDateFormatter localizedStringFromDate:self dateStyle:NSDateFormatterShortStyle timeStyle:nil];
> Plz clear out unused comments.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>