You just need to call isDaylightSavingTimeForDate
, passing in the relevant NSDate
.
It's not that isDaylightSavingTime
itself has two parameters - it's that it calls isDaylightSavingTimeForDate
with the current date. From the docs for isDaylightSavingTime
:
This method invokes
isDaylightSavingTimeForDate:
with the current date as the argument.
So just skip the "convenience" method and call isDaylightSavingTimeForDate
specifying the date you want to check. (I'd give some sample code, but the chances of me getting Objective C syntax correct are very slim...)