<?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: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229764#M679758</link>
    <description>So the date should be increased by N days, but the (local timezone) time should stay the same, right?&lt;BR /&gt;&lt;BR /&gt;How about if you just do the calculation like you do now, but then overwrite the hour/minute/second part of the answer with the hour/minute/second of the original date?&lt;BR /&gt;&lt;BR /&gt;MK&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 12 Mar 2010 06:38:41 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-03-12T06:38:41Z</dc:date>
    <item>
      <title>URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229762#M679756</link>
      <description>Hello ALL,&lt;BR /&gt;&lt;BR /&gt;I have a written a script ,&lt;BR /&gt;which converts currenr date into epoch seconds &lt;BR /&gt;and add number of days (ex: 1 ,2,3)&lt;BR /&gt;multilpy the days*86400 seconds &lt;BR /&gt;convert that seconds into date &lt;BR /&gt;&lt;BR /&gt;every day i am adding 1 or 2 days depending on the requirement to the current date&lt;BR /&gt;&lt;BR /&gt;but this is not adding one day when the time zone is from BST to GMT as 1 hour reduces &lt;BR /&gt;&lt;BR /&gt;for that i have written only for that particular day if the passed date and coneverted date are same then add 25 hours for that particular day&lt;BR /&gt;&lt;BR /&gt;but when i am passing days to add while converting from BST to GMT i am getting only one day is adding</description>
      <pubDate>Fri, 12 Mar 2010 05:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229762#M679756</guid>
      <dc:creator>Satish Kumar Malisetti</dc:creator>
      <dc:date>2010-03-12T05:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229763#M679757</link>
      <description>Hello,&lt;BR /&gt;Please check on this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1411389" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1411389&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The perl script that James has posted. There is also an older thread listed there.&lt;BR /&gt;&lt;BR /&gt;strftime just converts the seconds into a desired format.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Fri, 12 Mar 2010 06:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229763#M679757</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-12T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229764#M679758</link>
      <description>So the date should be increased by N days, but the (local timezone) time should stay the same, right?&lt;BR /&gt;&lt;BR /&gt;How about if you just do the calculation like you do now, but then overwrite the hour/minute/second part of the answer with the hour/minute/second of the original date?&lt;BR /&gt;&lt;BR /&gt;MK&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 06:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229764#M679758</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-03-12T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229765#M679759</link>
      <description>Matti, may be there would be an error at dst change time...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Else if you share your script which makes that, and an example, it may be more easy to help you.</description>
      <pubDate>Fri, 12 Mar 2010 07:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229765#M679759</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-03-12T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229766#M679760</link>
      <description>Laurent Menase ,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;script and eaxmple given below&lt;BR /&gt;&lt;BR /&gt; proc Lb_AddDaysToDateWithoutTime { pm_current_date pm_days }{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    set lv_epochCurrentDate [mktime $pm_current_date ]&lt;BR /&gt;    local lv_futureSec     [expr $pm_days * 86400]&lt;BR /&gt;    local lv_futureAdd     [expr $lv_epochCurrentDate + $lv_futureSec]&lt;BR /&gt;    local lv_futureConvert [date $lv_futureAdd]&lt;BR /&gt; return $lv_futureConvert&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;example :&lt;BR /&gt;&lt;BR /&gt;dsd &amp;gt;puts [Lb_AddDaysToDateWithoutTime 20101031 1]&lt;BR /&gt;answer : 20101031&lt;BR /&gt;&lt;BR /&gt;dsd &amp;gt;puts [Lb_AddDaysToDateWithoutTime 20101030 1]&lt;BR /&gt;&lt;BR /&gt;answer : 20101031&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please look into above example, now the time zone is GMT0BST&lt;BR /&gt;same script is working fine when time zone is GMT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229766#M679760</guid>
      <dc:creator>Satish Kumar Malisetti</dc:creator>
      <dc:date>2010-03-12T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229767#M679761</link>
      <description>It is because of 20101031  is the dst change date, so the day last 1 hour more,&lt;BR /&gt;&lt;BR /&gt;Since you calculate the date at 0:0:0  when you add 86400sec, you will be on the same day at 11pm&lt;BR /&gt;&lt;BR /&gt;So workarounds: make the calculation at midday (12:00:00)&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:50:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229767#M679761</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-03-12T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229768#M679762</link>
      <description>other workaround, add 43200 to the date&lt;BR /&gt;&lt;BR /&gt; local lv_futureSec [expr $pm_days * 86400 + 43200]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 09:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229768#M679762</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-03-12T09:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229769#M679763</link>
      <description>thanks alot it working fine&lt;BR /&gt;&lt;BR /&gt;but i need to check with the design team whether we can take midday timeor not</description>
      <pubDate>Fri, 12 Mar 2010 10:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229769#M679763</guid>
      <dc:creator>Satish Kumar Malisetti</dc:creator>
      <dc:date>2010-03-12T10:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229770#M679764</link>
      <description>+ 43200 is changing exactly the time to midday :D</description>
      <pubDate>Fri, 12 Mar 2010 10:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229770#M679764</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-03-12T10:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229771#M679765</link>
      <description>If this uses the C mktime(3) then there is a tm_isdst field that indicates if DST is in effect.  If this value changes from the start to the end date, you know you have to adjust your hour and possibly minute fields.</description>
      <pubDate>Fri, 12 Mar 2010 19:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229771#M679765</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-12T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229772#M679766</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;i didn't get you , could you please expalin me bit more &lt;BR /&gt;&lt;BR /&gt;thanks in advance</description>
      <pubDate>Mon, 15 Mar 2010 04:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229772#M679766</guid>
      <dc:creator>Satish Kumar Malisetti</dc:creator>
      <dc:date>2010-03-15T04:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229773#M679767</link>
      <description>&amp;gt;could you please explain me bit more&lt;BR /&gt;&lt;BR /&gt;What is the value of tm_isdst before you increment days?  What is the value after?&lt;BR /&gt;After you call mktime(3), all of the values are adjusted to the correct/canonical local time.</description>
      <pubDate>Mon, 15 Mar 2010 09:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229773#M679767</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-15T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229774#M679768</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Perl leverages the standard libc routines in an easy-to-use fashion, so why reinvent the wheel?&lt;BR /&gt;&lt;BR /&gt;# perl -MPOSIX -le '$t=shift||0;print strftime "%Y/%02m/%02d %02H:%02M:%02S %Z %z",localtime(time+($t*(60*60*24)))' 1 &lt;BR /&gt;&lt;BR /&gt;...will yield tomorrow's date and time in your localtime.  For me, this would look like:&lt;BR /&gt;&lt;BR /&gt;2010/03/15 10:08:41 EDT -0400&lt;BR /&gt;&lt;BR /&gt;...which shows that I am in Eastern Daylight Time, 4-hours behind from UTC/GMT.&lt;BR /&gt;&lt;BR /&gt;You can use the script above to go backwards in time by doing:&lt;BR /&gt;&lt;BR /&gt;# perl -MPOSIX -le '$t=shift||0;print strftime "%Y/%02m/%02d %02H:%02M:%02S %Z %z",localtime(time+($t*(60*60*24)))' -- -2&lt;BR /&gt;&lt;BR /&gt;2010/03/13 09:13:21 EST -0500&lt;BR /&gt;&lt;BR /&gt;...which shows that I just crossed a Daylight Saving Time boundry yesterday morning.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;You can use the formatting directives of 'strftime' which parallel those for the standard 'date' command</description>
      <pubDate>Mon, 15 Mar 2010 13:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229774#M679768</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-03-15T13:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229775#M679769</link>
      <description>&amp;gt;JRF: Perl leverages the standard libc routines in an easy-to-use fashion, so why reinvent the wheel?&lt;BR /&gt;&lt;BR /&gt;That's what I've been saying. :-)&lt;BR /&gt;&lt;BR /&gt;It appears that Satish wants to know when incrementing by N days doesn't give the same time of the day.&lt;BR /&gt;&lt;BR /&gt;I suggested that he look at the tm_isdst field after calling mktime(3).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2010/03/15 10:08:41 EDT -0400&lt;BR /&gt;&amp;gt;2010/03/13 09:13:21 EST -0500&lt;BR /&gt;&lt;BR /&gt;Satish doesn't seem to want that.  (That "add 25 hours" comment.)</description>
      <pubDate>Tue, 16 Mar 2010 09:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229775#M679769</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-16T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229776#M679770</link>
      <description>NOW MY QUERY IS RESOLVED THROUGH ADDING 12 HOURS (MID-DAY)&lt;BR /&gt;&lt;BR /&gt;THANKS ALOT</description>
      <pubDate>Wed, 17 Mar 2010 09:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229776#M679770</guid>
      <dc:creator>Satish Kumar Malisetti</dc:creator>
      <dc:date>2010-03-17T09:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT HELP REQUIRED on DATE to add 1 or more days getting error date when BST to GMT time conversio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229777#M679771</link>
      <description>Even if we don't do it for that, it is usually nice to give points before close. And it is also better as it indicates that the subject was solved.</description>
      <pubDate>Wed, 17 Mar 2010 11:46:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/urgent-help-required-on-date-to-add-1-or-more-days-getting-error/m-p/5229777#M679771</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-03-17T11:46:22Z</dc:date>
    </item>
  </channel>
</rss>

