<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Will it impact by DST changes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941052#M288920</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I don't recommend running any time based software or daemons through this upgrade process.&lt;BR /&gt;&lt;BR /&gt;I reccomment installing all requires software patches and java and then booting your system.&lt;BR /&gt;&lt;BR /&gt;Then your program should operate correctly.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 08 Feb 2007 10:49:15 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-02-08T10:49:15Z</dc:date>
    <item>
      <title>Will it impact by DST changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941051#M288919</link>
      <description>We are using the following functions in the Time.h file&lt;BR /&gt;we are getting the time using make_time function and then adding the duration to it. &lt;BR /&gt;&lt;BR /&gt;This the code we have:&lt;BR /&gt;Time current_time = make_time( "now" );&lt;BR /&gt;       Duration thirty_days(30);&lt;BR /&gt;       Time exp_date = current_time + thirty_days;&lt;BR /&gt;       set_Expire_Date( exp_date.make_string("%m/%d/%Y") );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These are the definitions found in Time.h file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Time make_time(const char* p);&lt;BR /&gt;&lt;BR /&gt;const Time&amp;amp; Time::operator+=(const Duration&amp;amp; right){&lt;BR /&gt;    t += (time_t)seconds(right);&lt;BR /&gt;    return *this;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So because of DST will it impact the above code??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2007 10:10:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941051#M288919</guid>
      <dc:creator>san_intel3</dc:creator>
      <dc:date>2007-02-08T10:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Will it impact by DST changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941052#M288920</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I don't recommend running any time based software or daemons through this upgrade process.&lt;BR /&gt;&lt;BR /&gt;I reccomment installing all requires software patches and java and then booting your system.&lt;BR /&gt;&lt;BR /&gt;Then your program should operate correctly.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 08 Feb 2007 10:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941052#M288920</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-02-08T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Will it impact by DST changes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941053#M288921</link>
      <description>I can't really see an issue.  If you only want the day, and DST start and end are deferred to 2 am, then you can never have the wrong date.&lt;BR /&gt;&lt;BR /&gt;But if this is all you are doing, you should immediately abandon Time(3) and use ctime(3):&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;int main() {&lt;BR /&gt;   char buf[128];&lt;BR /&gt;   time_t now = time(NULL);&lt;BR /&gt;   time_t next_month = now + 30*24*3600;  /* seconds in 30 days */&lt;BR /&gt;   struct tm *p = localtime(&amp;amp;next_month);&lt;BR /&gt;   int len = strftime(buf, sizeof(buf), "%m/%d/%Y", p);&lt;BR /&gt;   printf("Next month is %s\n", buf);&lt;BR /&gt;   return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/TIME.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 08 Feb 2007 22:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/will-it-impact-by-dst-changes/m-p/3941053#M288921</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-02-08T22:04:43Z</dc:date>
    </item>
  </channel>
</rss>

