An NSDate object specifies a particular point in time.
Despite “date” being in its name, it really stores time, of which the date is a component.
And it is this this method we will be using to a convert .Think of it as the number of seconds that have passed since a reference date. They’re both the number of seconds since the reference date, which may be formatted on output to UTC or local time. To explain this, we can use a NSDate Formatter in a playground: If you need to compare two dates, you can use the method below.This example shows comparing the current date against an end Date.These seconds are stored as a Double, which allows NSDate to range from milliseconds to years.What we see as an NSDate is actually an abstract public superclass for a cluster of classes related to dates.