Im using CFAbsoluteTimeGetCurrent()
to get the current time, as a CFAbsoluteTime
struct.
What is the best way of getting the CFAbsoluteTime
of midnight of today?
Ive considered getting midnight using a similar method to the one shown here and then converting the result to a CFAbsoluteTime
, but this seems ridiculously complicated to do a simple thing.
Is there a better way?