I would like some opinions/help with creating a fairly simple function, here are the requirements:
I need to determine if the current time is day or night (Day is between 6am and 6pm). For example here is some pseudo code:
if(currentTime < 6pm && currentTime > 6am){
return timeIsDay
}
else{
return timeIsNight
}
This is for an IOS application in Objective C and MUST be IOS 8.0 compatible.