Site updated at 2015-05-22 04:49:39 UTC

This commit is contained in:
Paulus Schoutsen 2015-05-21 21:49:39 -07:00
parent 85a2976dd5
commit dc82fc088e
20 changed files with 346 additions and 109 deletions

View file

@ -104,7 +104,7 @@
<hr class="divider">
<p>The time and date platform simple displays the time, the date, or both.</p>
<p>The time and date platform simple displays the time in various formats, the date, or both.</p>
<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
@ -114,6 +114,8 @@
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
</pre></td><td class='code'><pre><code class='yaml'><span class='line'><span class="c1"># Example configuration.yaml entry</span>
</span><span class='line'><span class="l-Scalar-Plain">sensor</span><span class="p-Indicator">:</span>
</span><span class='line'> <span class="l-Scalar-Plain">platform</span><span class="p-Indicator">:</span> <span class="l-Scalar-Plain">time_date</span>
@ -122,10 +124,12 @@
</span><span class='line'> <span class="p-Indicator">-</span> <span class="l-Scalar-Plain">type</span><span class="p-Indicator">:</span> <span class="s">&#39;date&#39;</span>
</span><span class='line'> <span class="p-Indicator">-</span> <span class="l-Scalar-Plain">type</span><span class="p-Indicator">:</span> <span class="s">&#39;date_time&#39;</span>
</span><span class='line'> <span class="p-Indicator">-</span> <span class="l-Scalar-Plain">type</span><span class="p-Indicator">:</span> <span class="s">&#39;time_date&#39;</span>
</span><span class='line'> <span class="p-Indicator">-</span> <span class="l-Scalar-Plain">type</span><span class="p-Indicator">:</span> <span class="s">&#39;time_utc&#39;</span>
</span><span class='line'> <span class="p-Indicator">-</span> <span class="l-Scalar-Plain">type</span><span class="p-Indicator">:</span> <span class="s">&#39;beat&#39;</span>
</span></code></pre></td></tr></table></div></figure>
<p>The types <em>date_time</em> and <em>time_date</em> shows the date and the time. The other two types just the time or the date.</p>
<p>The types <em>date_time</em> and <em>time_date</em> shows the date and the time. The other types just the time or the date. <em>beat</em> shows the <a href="http://www.swatch.com/en_us/internet-time">Swatch Internet Time</a>.</p>
<p class='img'>
<img src='/images/screenshots/time_date.png' />