<?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 Is DST in effect? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096650#M443399</link>
    <description>How can i determine via a script is Daylight Savings Time is in effect or not?</description>
    <pubDate>Sun, 09 Mar 2008 12:53:13 GMT</pubDate>
    <dc:creator>Craig Sterley</dc:creator>
    <dc:date>2008-03-09T12:53:13Z</dc:date>
    <item>
      <title>Is DST in effect?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096650#M443399</link>
      <description>How can i determine via a script is Daylight Savings Time is in effect or not?</description>
      <pubDate>Sun, 09 Mar 2008 12:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096650#M443399</guid>
      <dc:creator>Craig Sterley</dc:creator>
      <dc:date>2008-03-09T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is DST in effect?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096651#M443400</link>
      <description>Hi Craig:&lt;BR /&gt;&lt;BR /&gt;# perl -le '$dst=(localtime)[8];print $dst==1 ? "in DST":"not in DST"'&lt;BR /&gt;&lt;BR /&gt;...is an easy way to answer your question.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 09 Mar 2008 13:21:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096651#M443400</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-09T13:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is DST in effect?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096652#M443401</link>
      <description>Thank you for the quick response.  That did the trick.</description>
      <pubDate>Sun, 09 Mar 2008 13:51:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096652#M443401</guid>
      <dc:creator>Craig Sterley</dc:creator>
      <dc:date>2008-03-09T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is DST in effect?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096653#M443402</link>
      <description>case closed.  Thanks again</description>
      <pubDate>Sun, 09 Mar 2008 13:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096653#M443402</guid>
      <dc:creator>Craig Sterley</dc:creator>
      <dc:date>2008-03-09T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is DST in effect?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096654#M443403</link>
      <description>&lt;!--!*#--&gt;A shell script solution: examine the timezone identifier (available with "date +%Z"). &lt;BR /&gt;&lt;BR /&gt;For example, at the US West Coast, it should return PST when using Standard Time and PDT when the Daylight Saving Time is in effect.&lt;BR /&gt;&lt;BR /&gt;This can be made timezone-agnostic by using the fact that the only thing we need to know is whether the current timezone identifier is  at the beginning of the TZ value, or at the end.&lt;BR /&gt;&lt;BR /&gt;Disclaimer: quick&amp;amp;dirty, with very little testing. If it breaks, you can keep the pieces.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;NOW=$(date +%Z)&lt;BR /&gt;if [ ${TZ#$NOW} != ${TZ} ]&lt;BR /&gt;then&lt;BR /&gt;    echo "Standard time"&lt;BR /&gt;elif [ ${TZ%$NOW} != ${TZ} ]&lt;BR /&gt;then&lt;BR /&gt;    echo "Daylight time"&lt;BR /&gt;else&lt;BR /&gt;    echo "ERROR: date command outputted a timezone identifier not listed in TZ"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sun, 09 Mar 2008 14:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/is-dst-in-effect/m-p/5096654#M443403</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-03-09T14:03:06Z</dc:date>
    </item>
  </channel>
</rss>

