<doc>
  <legacy_id>1676</legacy_id>
  <name>time</name>
  <type>function</type>
  <syntax>
    <example>the [long | abbr[rev[iated]] | short] [english | system ] time</example>
    <example>time()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
  </classification>
  <references>
    <command tag="convert">convert Command</command>
    <function tag="ticks">ticks Function</function>
    <keyword tag="abbreviated">abbreviated Keyword</keyword>
    <property tag="useSystemDate">useSystemDate Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
    <changed version="1.1"></changed>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the current time.</summary>
  <examples>
    <example>put the time into the lastModifiedTime of this card</example>
    <example>set the label of button "Clock" to the short system time</example>
  </examples>
  <description>
    <p>Use the <b>time</b> <control_st tag="function">function</control_st> to display the current time to the user, or to store the time for later use.</p><p/><p><b>Value:</b></p><p>If the <b>useSystemDate</b> <glossary tag="property">property</glossary> is set to true or if you specify the <keyword tag="system">system</keyword> time, the times returned by the <b>time</b> <control_st tag="function">function</control_st> are <glossary tag="format">formatted</glossary> according to the user's system preferences.</p><p/><p>If the <b>useSystemDate</b> is false or if you specify the <keyword tag="english">english</keyword> time, the times are in the <function tag="format">format</function> described below:</p><p/><p>The<code> time </code>form returns the hour and minute separated by a colon, a space, and "<code>AM</code>" or "<code>PM</code>".</p><p/><p>The<code> short time </code>form returns the same value as the<code> time </code>form.</p><p/><p>The<code> abbreviated time </code>form returns the same value as the<code> time </code>form.</p><p/><p>The<code> long time </code>form returns the hour, minute, and second separated by colons, a space, and "<code>AM</code>" or "<code>PM</code>".</p><p/><p><b>Comments:</b></p><p>If the <b>twelveHourTime</b> <glossary tag="property">property</glossary> is set to false, the value <glossary tag="return">returned</glossary> by the <b>time</b> <control_st tag="function">function</control_st> does not include "<code>AM</code>" or "<code>PM</code>".</p><p/><p>The format of the<code> system time </code>forms is set by the Date &amp; Time control panel (on Mac OS systems), the Date control panel (on <glossary tag="Windows">Windows systems</glossary>), or the LANG environment variable (on <glossary tag="Unix">Unix systems</glossary>).</p><p/><p><b>Changes:</b></p><p>The ability to use the time format preferred by the user was introduced in version 1.1. In previous versions, the <b>time</b> <control_st tag="function">function</control_st>, along with the <function tag="date">date</function> <control_st tag="function">function</control_st>, consistently used the standard U.S. <function tag="format">format</function>, even if the operating system's settings specified another language or time <function tag="format">format</function>.</p>
  </description>
</doc>