Site updated at 2015-05-22 04:49:39 UTC
This commit is contained in:
parent
85a2976dd5
commit
dc82fc088e
20 changed files with 346 additions and 109 deletions
|
@ -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">'date'</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">'date_time'</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">'time_date'</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">'time_utc'</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">'beat'</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' />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue