<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ethernut.de/nutwiki/index.php?action=history&amp;feed=atom&amp;title=Caltime</id>
	<title>Caltime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ethernut.de/nutwiki/index.php?action=history&amp;feed=atom&amp;title=Caltime"/>
	<link rel="alternate" type="text/html" href="https://www.ethernut.de/nutwiki/index.php?title=Caltime&amp;action=history"/>
	<updated>2026-11-22T13:26:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://www.ethernut.de/nutwiki/index.php?title=Caltime&amp;diff=38&amp;oldid=prev</id>
		<title>Harald: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.ethernut.de/nutwiki/index.php?title=Caltime&amp;diff=38&amp;oldid=prev"/>
		<updated>2016-10-27T16:02:52Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:02, 27 October 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Harald</name></author>
	</entry>
	<entry>
		<id>https://www.ethernut.de/nutwiki/index.php?title=Caltime&amp;diff=37&amp;oldid=prev</id>
		<title>Harald: /* Boards with RTC Hardware */</title>
		<link rel="alternate" type="text/html" href="https://www.ethernut.de/nutwiki/index.php?title=Caltime&amp;diff=37&amp;oldid=prev"/>
		<updated>2012-10-12T14:29:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Boards with RTC Hardware&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== General Functions ==&lt;br /&gt;
&lt;br /&gt;
This sample demonstrate several time and date features provided by Nut/OS. Furthermore, it can be used to setup the RTC hardware on your board, if available.&lt;br /&gt;
&lt;br /&gt;
When started, the following output appears on the console.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Calendar Time 2.1 running on Nut/OS 5.0.5.0&lt;br /&gt;
Opening line editor...OK&lt;br /&gt;
Registering RTC hardware...OK&lt;br /&gt;
&lt;br /&gt;
  0 - Display seconds counter&lt;br /&gt;
  1 - Display universal time&lt;br /&gt;
  2 - Display local time&lt;br /&gt;
  3 - Display system uptime&lt;br /&gt;
  C - Calculate weekday&lt;br /&gt;
  S - Set local time&lt;br /&gt;
  Y - Toggle DST calculation&lt;br /&gt;
  Z - Set timezone&lt;br /&gt;
What is thy bidding, my master?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Date and Time ===&lt;br /&gt;
&lt;br /&gt;
While Nut/OS internally uses [http://en.wikipedia.org/wiki/Universal_time universal time], caltime allows to enter the local time. Therefore, it is required to enter your local [http://en.wikipedia.org/wiki/Time_zone time zone] first.&lt;br /&gt;
&lt;br /&gt;
Press Z and enter the time deviation, given in hours and minutes offset to Greenwich Mean Time. By default it is set to +5:00 (Western America), for Central Europe set it to -1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enter time difference in format HH:MM: -1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now press S to enter the current date and time in the requested format. The time must be entered in 24h format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enter date, use format YYYY/MM/DD  : 2012/10/12&lt;br /&gt;
Enter time, use 24h format HH:MM:SS: 16:22:30&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Boards with RTC Hardware ==&lt;br /&gt;
&lt;br /&gt;
On boards with RTC hardware, the following may be printed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Registering RTC hardware...power failure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, the RTC chip lost track of the date and time, probably caused by a failure of the backup power supply.&lt;br /&gt;
&lt;br /&gt;
You can fix this by manually setting the local time.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Time and Date]]&lt;br /&gt;
* [[Time Zones]]&lt;br /&gt;
* [[RFC Date and Time Conversion]]&lt;br /&gt;
* More [[Nut/OS Examples]]&lt;/div&gt;</summary>
		<author><name>Harald</name></author>
	</entry>
</feed>