Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (31 sloc) 0.507 kb
//
// AppUtilities.m
// XboxLiveStatus
//
// Created by Daniel Harper on 04/07/2010.
// Copyright 2010 AO. All rights reserved.
//
#import "AppUtilities.h"
@implementation AppUtilities
+(NSString *)returnDaySuffix:(NSInteger)day
{
NSString *daySuffix;
if (day == 1 || day == 21 || day == 31)
{
daySuffix = @"st";
}
else if (day == 2 || day == 22)
{
daySuffix = @"nd";
}
else if (day == 3 || day == 23)
{
daySuffix = @"rd";
}
else
{
daySuffix = @"th";
}
return daySuffix;
}
@end
Jump to Line
Something went wrong with that request. Please try again.