VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /usr/share/doc/gnustep-base-doc/Base/Reference/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/gnustep-base-doc/Base/Reference/NSDate.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <title>NSDate class reference</title>
  </head>
  <body>
    <font face="serif">
    <a href="Base.html">Up</a>
    <br />
    <h1><a name="title$NSDate">NSDate class reference</a></h1>
    <h3>Authors</h3>
    <dl>
      <dt>Jeremy Bettis (<a href="mailto:jeremy@hksys.com"><code>jeremy@hksys.com</code></a>)</dt>
      <dd>
      </dd>
      <dt>Scott Christley (<a href="mailto:scottc@net-community.com"><code>scottc@net-community.com</code></a>)</dt>
      <dd>
      </dd>
      <dt>Richard Frith-Macdonald (<a href="mailto:richard@brainstorm.co.uk"><code>richard@brainstorm.co.uk</code></a>)</dt>
      <dd>
      </dd>
    </dl>
    <p><b>Copyright:</b> (C) 
      1995, 1996, 1997, 1998 Free Software Foundation, Inc.
    </p>

        <div>
    </div>

          <h1><a name="001000000000">
        Software documentation for the NSDate class
      </a></h1>
    <h2><a name="class$NSDate">NSDate</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2>
    <blockquote class="declared">
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>Foundation/NSDate.h</dd>
      </dl>
    </blockquote>
    <blockquote>
      <dl>
        <dt><b>Conforms to:</b></dt>
        <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCoding)">NSCoding</a></dd>
        <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd>
      </dl>
    </blockquote>
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
          An <code>NSDate</code> object encapsulates a constant
          date/time to a high resolution represented by the
          <code>NSTimeInterval</code> typedef.
          <code>NSDate</code> has methods relating to times and
          time differences in the abstract, but not calendar dates
          or time zones. These features are added in the
          <a rel="gsdoc" href="NSCalendarDate.html#class$NSCalendarDate">NSCalendarDate</a>

            subclass. The
            <a rel="gsdoc" href="NSTimeZone.html#class$NSTimeZone">NSTimeZone</a>

              class handles time zone information.
        
    </div>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+date">+date</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithNaturalLanguageString$">+dateWithNaturalLanguageString:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithNaturalLanguageString$locale$">+dateWithNaturalLanguageString:locale:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithString$">+dateWithString:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithTimeInterval$sinceDate$">+dateWithTimeInterval:sinceDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithTimeIntervalSince1970$">+dateWithTimeIntervalSince1970:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithTimeIntervalSinceNow$">+dateWithTimeIntervalSinceNow:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+dateWithTimeIntervalSinceReferenceDate$">+dateWithTimeIntervalSinceReferenceDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+distantFuture">+distantFuture</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+distantPast">+distantPast</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate+timeIntervalSinceReferenceDate">+timeIntervalSinceReferenceDate</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-addTimeInterval$">-addTimeInterval:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-compare$">-compare:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-dateByAddingTimeInterval$">-dateByAddingTimeInterval:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-dateWithCalendarFormat$timeZone$">-dateWithCalendarFormat:timeZone:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-description">-description</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-descriptionWithCalendarFormat$timeZone$locale$">-descriptionWithCalendarFormat:timeZone:locale:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-descriptionWithLocale$">-descriptionWithLocale:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-earlierDate$">-earlierDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-init">-init</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-initWithString$">-initWithString:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-initWithTimeInterval$sinceDate$">-initWithTimeInterval:sinceDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-initWithTimeIntervalSince1970$">-initWithTimeIntervalSince1970:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-initWithTimeIntervalSinceNow$">-initWithTimeIntervalSinceNow:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-initWithTimeIntervalSinceReferenceDate$">-initWithTimeIntervalSinceReferenceDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-isEqual$">-isEqual:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-isEqualToDate$">-isEqualToDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-laterDate$">-laterDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-timeIntervalSince1970">-timeIntervalSince1970</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-timeIntervalSinceDate$">-timeIntervalSinceDate:</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-timeIntervalSinceNow">-timeIntervalSinceNow</a></li>
      <li><a rel="gsdoc" href="NSDate.html#method$NSDate-timeIntervalSinceReferenceDate">-timeIntervalSinceReferenceDate</a></li>
    </ul>
    <hr width="50%" align="left" />
<div class="method">
    <h3><a name="method$NSDate+date">date&nbsp;</a></h3>
    + (id) <b>date</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the current
            date/time.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithNaturalLanguageString$">dateWithNaturalLanguageString:&nbsp;</a></h3>
    + (id) <b>dateWithNaturalLanguageString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)string;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance representing the
            date and time given by <var>string</var>. The value of
            <var>string</var> may be a &apos;natural&apos; specification as
            specified by the preferences in the user defaults
            database, allowing phrases like &apos;last tuesday&apos;
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithNaturalLanguageString$locale$">dateWithNaturalLanguageString:&nbsp;locale:&nbsp;</a></h3>
    + (id) <b>dateWithNaturalLanguageString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)string<b> locale:</b> (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*)locale;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
    <div class="desc">
      
            
    </p>
    <p>

              Returns an autoreleased instance representing the
              date and time given by <var>string</var>. The value
              of <var>string</var> may be a &apos;natural&apos; specification
              as specified by the preferences in the user defaults
              database, allowing phrases like &apos;last tuesday&apos;
                </p>
    <p>
      
            The <var>locale</var> contains keys such as -
            
      <dl>
        <dt>NSDateTimeOrdering</dt>
        <dd>
          
                Controls the use of ambiguous numbers. This is
                done as a sequence of the letters D(ay), M(onth),
                Y(ear), and H(our). YMDH means that the first
                number encountered is assumed to be a year, the
                second a month, the third a day, and the last an
                hour.
              
        </dd>
        <dt>NSEarlierTimeDesignations</dt>
        <dd>
          
                An array of strings for times in the past. <br />
                Defaults are <em>ago</em>, <em>last</em>,
                <em>past</em>, <em>prior</em>
              
        </dd>
        <dt>NSHourNameDesignations</dt>
        <dd>
          
                An array of arrays of strings identifying the time
                of day. Each array has an hour as its first value,
                and one or more words as subsequent values. <br />
                Defaults are: (0, midnight), (10, morning),
                (12, noon, lunch), (14, afternoon), (19, dinner).
              
        </dd>
        <dt>NSLaterTimeDesignations</dt>
        <dd>
          
                An array of strings for times in the future. <br />
                Default is <em>next</em>
              
        </dd>
        <dt>NSNextDayDesignations</dt>
        <dd>
          
                The day after today. Default is <em>tomorrow.</em>
              
        </dd>
        <dt>NSNextNextDayDesignations</dt>
        <dd>
          
                The day after tomorrow. Default is
                <em>nextday.</em>
              
        </dd>
        <dt>NSPriorDayDesignations</dt>
        <dd>
          
                The day before today. Default is
                <em>yesterday.</em>
              
        </dd>
        <dt>NSThisDayDesignations</dt>
        <dd>
          
                Identifies the current day. Default is
                <em>today.</em>
              
        </dd>
        <dt>NSYearMonthWeekDesignations</dt>
        <dd>
          
                An array giving the word for year, month, and week.
                <br /> Defaults are <em>year</em>,
                <em>month</em> and <em>week</em>.
              
        </dd>
      </dl>
      
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithString$">dateWithString:&nbsp;</a></h3>
    + (id) <b>dateWithString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)description;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the date and
            time value given by the string using the ISO standard
            format YYYY-MM-DD HH:MM:SS +/-HHHMM (all the fields
            of which must be present).
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithTimeInterval$sinceDate$">dateWithTimeInterval:&nbsp;sinceDate:&nbsp;</a></h3>
    + (id) <b>dateWithTimeInterval:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds<b> sinceDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)date;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.6.0</div>
<br />
    <div class="desc">
      
            Returns an autoreleased NSDate instance whose value
            is offset from that of the given <var>date</var> by the
            specified interval in <var>seconds</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithTimeIntervalSince1970$">dateWithTimeIntervalSince1970:&nbsp;</a></h3>
    + (id) <b>dateWithTimeIntervalSince1970:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the offset
            from the unix system reference date of 1 January 1970,
            GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithTimeIntervalSinceNow$">dateWithTimeIntervalSinceNow:&nbsp;</a></h3>
    + (id) <b>dateWithTimeIntervalSinceNow:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the offset
            from the current date/time given by <var>seconds</var>
            (which may be fractional).
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+dateWithTimeIntervalSinceReferenceDate$">dateWithTimeIntervalSinceReferenceDate:&nbsp;</a></h3>
    + (id) <b>dateWithTimeIntervalSinceReferenceDate:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the offset
            from the OpenStep reference date of 1 January 2001,
            GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+distantFuture">distantFuture&nbsp;</a></h3>
    + (id) <b>distantFuture</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the date/time
            set in the far future.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+distantPast">distantPast&nbsp;</a></h3>
    + (id) <b>distantPast</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance with the date/time
            set in the far past.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate+timeIntervalSinceReferenceDate">timeIntervalSinceReferenceDate&nbsp;</a></h3>
    + (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>timeIntervalSinceReferenceDate</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the reference
            date and the current time. <br /> Returns the time
            interval between the current date and the
            reference date (1 January 2001, GMT).
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-addTimeInterval$">addTimeInterval:&nbsp;</a></h3>
    - (id) <b>addTimeInterval:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autorelease date instance formed by
            adding the specified time interval in
            <var>seconds</var> to the receiver&apos;s time interval.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-compare$">compare:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSComparisonResult">NSComparisonResult</a>) <b>compare:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)otherDate;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the receivers
            value and the OpenStep reference date of 1 Jan 2001
            GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-dateByAddingTimeInterval$">dateByAddingTimeInterval:&nbsp;</a></h3>
    - (id) <b>dateByAddingTimeInterval:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)ti;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.6.0</div>
<br />
    <div class="desc">
      
            Returns an autoreleased NSDate instance whose value
            is offset from that of the receiver by the specified
            interval.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-dateWithCalendarFormat$timeZone$">dateWithCalendarFormat:&nbsp;timeZone:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSCalendarDate.html#class$NSCalendarDate">NSCalendarDate</a>*) <b>dateWithCalendarFormat:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)formatString<b> timeZone:</b> (<a rel="gsdoc" href="NSTimeZone.html#class$NSTimeZone">NSTimeZone</a>*)timeZone;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an autoreleased instance of the
            <a rel="gsdoc" href="NSCalendarDate.html#class$NSCalendarDate">NSCalendarDate</a>

              class whose date/time value is the same as that of
              the receiver, and which uses the
              <var>formatString</var> and <var>timeZone</var>
              specified.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-description">description&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>description</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns a string representation of the receiver
            formatted according to the default format string,
            time zone, and locale.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-descriptionWithCalendarFormat$timeZone$locale$">descriptionWithCalendarFormat:&nbsp;timeZone:&nbsp;locale:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>descriptionWithCalendarFormat:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)format<b> timeZone:</b> (<a rel="gsdoc" href="NSTimeZone.html#class$NSTimeZone">NSTimeZone</a>*)aTimeZone<b> locale:</b> (<a rel="gsdoc" href="NSDictionary.html#class$NSDictionary">NSDictionary</a>*)l;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns a string representation of the receiver
            formatted according to the specified
            <var>format</var> string, time zone, and locale.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-descriptionWithLocale$">descriptionWithLocale:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*) <b>descriptionWithLocale:</b> (id)locale;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns a string representation of the receiver
            formatted according to the default format string
            and time zone, but using the given <var>locale</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-earlierDate$">earlierDate:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*) <b>earlierDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)otherDate;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the earlier of the receiver and
            <var>otherDate</var>. <br /> If the two represent
            identical date/time values, returns the receiver.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-init">init&nbsp;</a></h3>
    - (id) <b>init</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an instance initialised with the current
            date/time.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-initWithString$">initWithString:&nbsp;</a></h3>
    - (id) <b>initWithString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)description;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an instance with the date and time value
            given by the string using the ISO standard format
            YYYY-MM-DD HH:MM:SS +/-HHHMM (all the fields of
            which must be present).
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-initWithTimeInterval$sinceDate$">initWithTimeInterval:&nbsp;sinceDate:&nbsp;</a></h3>
    - (id) <b>initWithTimeInterval:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)secsToBeAdded<b> sinceDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)anotherDate;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an instance with the given offset from
            <var>anotherDate</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-initWithTimeIntervalSince1970$">initWithTimeIntervalSince1970:&nbsp;</a></h3>
    - (id) <b>initWithTimeIntervalSince1970:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)seconds;<br />
    <div class="availability">
<b>Availability:</b> MacOS-X 10.0.0</div>
<br />
    <div class="desc">
      
            Returns an instance with the offset from the unix
            system reference date of 1 January 1970, GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-initWithTimeIntervalSinceNow$">initWithTimeIntervalSinceNow:&nbsp;</a></h3>
    - (id) <b>initWithTimeIntervalSinceNow:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)secsToBeAdded;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns an instance with the offset from the
            current date/time.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-initWithTimeIntervalSinceReferenceDate$">initWithTimeIntervalSinceReferenceDate:&nbsp;</a></h3>
    - (id) <b>initWithTimeIntervalSinceReferenceDate:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>)secs;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
This is a designated initialiser for the class.<br />
    <div class="desc">
      
            Returns an instance with the given offset from the
            OpenStep reference date of 1 January 2001, GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-isEqual$">isEqual:&nbsp;</a></h3>
    - (BOOL) <b>isEqual:</b> (id)other;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns <code>NO</code> if <var>other</var> is not
            a date, otherwise returns the result of calling the
            
              -isEqualtoDate:
            

            method.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-isEqualToDate$">isEqualToDate:&nbsp;</a></h3>
    - (BOOL) <b>isEqualToDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)other;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns whether the receiver is exactly equal to
            <var>other</var>, to the limit of the NSTimeInterval
            precision. <br /> This is the behavior of the
            current MacOS-X system, not that of the OpenStep
            specification (which counted two dates within
            a second of each <var>other</var> as being equal). <br />
            The old behavior meant that two dates equal to a third
            date were not necessarily equal to each
            <var>other</var> (confusing), and meant that there
            was no reasonable way to use a date as a dictionary key
            or store dates in a set.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-laterDate$">laterDate:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*) <b>laterDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)otherDate;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the earlier of the receiver and
            <var>otherDate</var>. <br /> If the two represent
            identical date/time values, returns the receiver.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-timeIntervalSince1970">timeIntervalSince1970&nbsp;</a></h3>
    - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>timeIntervalSince1970</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the receivers
            value and the unix system reference date of 1 January
            1970, GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-timeIntervalSinceDate$">timeIntervalSinceDate:&nbsp;</a></h3>
    - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>timeIntervalSinceDate:</b> (<a rel="gsdoc" href="#class$NSDate">NSDate</a>*)otherDate;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the receivers
            value and that of the <var>otherDate</var> argument.
            If <var>otherDate</var> is earlier than the receiver,
            the returned value will be positive, if it is later it
            will be negative. <br /> For current (2011) OSX
            compatibility, this method returns NaN if
            <var>otherDate</var> is <code>nil</code>... do not
            write code depending on that behavior.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-timeIntervalSinceNow">timeIntervalSinceNow&nbsp;</a></h3>
    - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>timeIntervalSinceNow</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the receivers
            value and the current date/time. If the receiver
            represents a date/time in the past this will be
            negative, if it is in the future the returned
            value will be positive.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSDate-timeIntervalSinceReferenceDate">timeIntervalSinceReferenceDate&nbsp;</a></h3>
    - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSTimeInterval">NSTimeInterval</a>) <b>timeIntervalSinceReferenceDate</b>;<br />
    <div class="availability">
<b>Availability:</b> OpenStep</div>
<br />
    <div class="desc">
      
            Returns the time interval between the receivers
            value and the OpenStep reference date of 1 Jan 2001
            GMT.
          
    </div>
    <hr width="25%" align="left" />
</div>
    <br />
    <a href="Base.html">Up</a>
    </font>
</body>
</html>

VaKeR 2022