<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://brandonhutchinson.com/mediawiki/skins/common/feed.css?97"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;action=history&amp;feed=atom</id>
		<title>Testing DST Patches - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;action=history"/>
		<updated>2013-05-24T06:45:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.11.0rc1</generator>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1112&amp;oldid=prev</id>
		<title>Hutch at 22:37, 28 March 2008</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1112&amp;oldid=prev"/>
				<updated>2008-03-28T22:37:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:37, 28 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note: On Linux systems, you may want to replace '''%A %C''' above with '''%c'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''./show_DST.pl'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''./show_DST.pl'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1111&amp;oldid=prev</id>
		<title>Hutch at 22:37, 28 March 2008</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1111&amp;oldid=prev"/>
				<updated>2008-03-28T22:37:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:37, 28 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note: On Linux systems, you may want to replace '''%A %C''' above with '''%c'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''./show_DST.pl'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''./show_DST.pl'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1110&amp;oldid=prev</id>
		<title>Hutch at 19:41, 28 March 2008</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1110&amp;oldid=prev"/>
				<updated>2008-03-28T19:41:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:41, 28 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''zdump -v Australia/NSW | grep 2008'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; $ '''zdump -v Australia/NSW | grep 2008'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; Australia/NSW  Fri Mar 28 19:22:17 2008 UTC = Sat Mar 29 06:22:17 2008 EST isdst=1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; Australia/NSW  Fri Mar 28 19:22:17 2008 UTC = Sat Mar 29 06:22:17 2008 EST isdst=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Mar 29 15:59:59 2008 UTC = Sun Mar 30 02:59:59 2008 EST isdst=1''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Mar 29 15:59:59 2008 UTC = Sun Mar 30 02:59:59 2008 EST isdst=1&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'&lt;/ins&gt;''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Mar 29 16:00:00 2008 UTC = Sun Mar 30 02:00:00 2008 EST isdst=0'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Mar 29 16:00:00 2008 UTC = Sun Mar 30 02:00:00 2008 EST isdst=0'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Oct 25 15:59:59 2008 UTC = Sun Oct 26 01:59:59 2008 EST isdst=0'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; '''Australia/NSW  Sat Oct 25 15:59:59 2008 UTC = Sun Oct 26 01:59:59 2008 EST isdst=0'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	<entry>
		<id>http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1109&amp;oldid=prev</id>
		<title>Hutch: New page: You've applied DST patches. How do you test the changes without actually changing the system date?  Note: I can't think of any reason not to trust ''zdump'' output, and there may be a bett...</title>
		<link rel="alternate" type="text/html" href="http://brandonhutchinson.com/mediawiki/index.php5?title=Testing_DST_Patches&amp;diff=1109&amp;oldid=prev"/>
				<updated>2008-03-28T19:41:10Z</updated>
		
		<summary type="html">&lt;p&gt;New page: You've applied DST patches. How do you test the changes without actually changing the system date?  Note: I can't think of any reason not to trust ''zdump'' output, and there may be a bett...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You've applied DST patches. How do you test the changes without actually changing the system date?&lt;br /&gt;
&lt;br /&gt;
Note: I can't think of any reason not to trust ''zdump'' output, and there may be a better procedure for doing this.&lt;br /&gt;
&lt;br /&gt;
The following example Solaris 8 system using time zone Australia/NSW has received the latest DST patches for Australia.&lt;br /&gt;
&lt;br /&gt;
 $ '''zdump -v Australia/NSW | grep 2008'''&lt;br /&gt;
 Australia/NSW  Fri Mar 28 19:22:17 2008 UTC = Sat Mar 29 06:22:17 2008 EST isdst=1&lt;br /&gt;
 '''Australia/NSW  Sat Mar 29 15:59:59 2008 UTC = Sun Mar 30 02:59:59 2008 EST isdst=1''&lt;br /&gt;
 '''Australia/NSW  Sat Mar 29 16:00:00 2008 UTC = Sun Mar 30 02:00:00 2008 EST isdst=0'''&lt;br /&gt;
 '''Australia/NSW  Sat Oct 25 15:59:59 2008 UTC = Sun Oct 26 01:59:59 2008 EST isdst=0'''&lt;br /&gt;
 '''Australia/NSW  Sat Oct 25 16:00:00 2008 UTC = Sun Oct 26 03:00:00 2008 EST isdst=1'''&lt;br /&gt;
&lt;br /&gt;
The following Perl script will show what happens at 2008/03/30 02:59:59 and one second after as well as 2008/10/26 01:59:59 and one second after.&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/perl&lt;br /&gt;
 &lt;br /&gt;
 use POSIX qw(strftime);&lt;br /&gt;
 use Time::Local;&lt;br /&gt;
 &lt;br /&gt;
 $time = timegm(59,59,15,29,2,108);&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 $time = timegm(59,59,15,25,9,108);&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
 $ '''./show_DST.pl'''&lt;br /&gt;
 strftime gives: Sunday Sun Mar 30 02:59:59 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Mar 30 02:00:00 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Oct 26 01:59:59 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Oct 26 03:00:00 EST 2008&lt;br /&gt;
&lt;br /&gt;
This makes sense given the output of ''zdump'' above.&lt;br /&gt;
&lt;br /&gt;
After patching the system, the time zone data for Australia/NSW is correct:&lt;br /&gt;
 $ '''zdump -v Australia/NSW | grep 2008'''&lt;br /&gt;
 Australia/NSW  Fri Mar 28 19:26:10 2008 UTC = Sat Mar 29 06:26:10 2008 EST isdst=1&lt;br /&gt;
 '''Australia/NSW  Sat Apr  5 15:59:59 2008 UTC = Sun Apr  6 02:59:59 2008 EST isdst=1'''&lt;br /&gt;
 '''Australia/NSW  Sat Apr  5 16:00:00 2008 UTC = Sun Apr  6 02:00:00 2008 EST isdst=0'''&lt;br /&gt;
 '''Australia/NSW  Sat Oct  4 15:59:59 2008 UTC = Sun Oct  5 01:59:59 2008 EST isdst=0'''&lt;br /&gt;
 '''Australia/NSW  Sat Oct  4 16:00:00 2008 UTC = Sun Oct  5 03:00:00 2008 EST isdst=1'''&lt;br /&gt;
&lt;br /&gt;
The following Perl script will show what happens at 2008/04/06 02:59:59 and one second after as well as 2008/10/05 01:59:59 and one second after.&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/perl&lt;br /&gt;
 &lt;br /&gt;
 use POSIX qw(strftime);&lt;br /&gt;
 use Time::Local;&lt;br /&gt;
 &lt;br /&gt;
 $time = timegm(59,59,15,5,3,108);&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 $time = timegm(59,59,15,4,9,108);&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;strftime gives: &amp;quot;, strftime(&amp;quot;%A %C&amp;quot;, localtime($time+1)), &amp;quot;\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
 $ '''./show_DST.pl'''&lt;br /&gt;
 strftime gives: Sunday Sun Apr  6 02:59:59 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Apr  6 02:00:00 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Oct  5 01:59:59 EST 2008&lt;br /&gt;
 strftime gives: Sunday Sun Oct  5 03:00:00 EST 2008&lt;br /&gt;
&lt;br /&gt;
Again, this makes sense given the output of ''zdump'' above.&lt;/div&gt;</summary>
		<author><name>Hutch</name></author>	</entry>

	</feed>