I haven t used NSDate that much, so I d like some help with a calculation I am doing.
I have an integer that has my store s closing hour in minutes since midnight. Basically, my store closes at 5.00PM, which gives me the integer 1020.
So right now it s 10.45PM or 22.45. Integer since 00:00 is 1365, and from this I can say
if (storeHour < currentTime) {
// closed!
}
However, I don t know how I get from "22.45" that I have from NSDate to converting it to an integer representing time since 00:00. Is there something in NSDate that can help me with that?
Thx