<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CREATETIME</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CREATETIME</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Creates a time variable.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A time variable.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
Date and time functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>CreateTime(hour, minute, second)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
CreateODBCTime, CreateDateTime; "Evaluation and type conversion issues" in Chapter&#160;3, "Using ColdFusion Variables," in ColdFusion MX Developer's Guide
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Usage</span>
<p>
CreateTime is a subset of CreateDateTime.
</p>

<p>
A time variable is a special case of a date-time variable. The date part of a time variable is set to December 30, 1899. 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;h3&gt;CreateTime Example&lt;/h3&gt;
&lt;cfif IsDefined(&quot;FORM.hour&quot;)&gt;
Your time value, presented using CreateTime time function:
&lt;cfset yourTime = CreateTime(FORM.hour, FORM.minute, FORM.second)&gt;
&lt;cfoutput&gt;&lt;ul&gt;
   &lt;li&gt;Formatted with timeFormat: #TimeFormat(yourTime)#
   &lt;li&gt;Formatted with timeFormat and hh:mm:ss: #TimeFormat(yourTime, 
&#39;hh:mm:ss&#39;)#
&lt;/ul&gt;&lt;/cfoutput&gt;
&lt;/cfif&gt;
&lt;CFFORM action=&quot;createtime.cfm&quot; METHOD=&quot;post&quot;&gt;
&lt;PRE&gt;Hour         &lt;CFINPUT TYPE=&quot;Text&quot; NAME=&quot;hour&quot; VALUE=&quot;16&quot; RANGE=&quot;0,23&quot; 
   MESSAGE=&quot;You must enter an hour (0-23)&quot; VALIDATE=&quot;integer&quot; REQUIRED=&quot;Yes&quot;&gt;
Minute         &lt;CFINPUT TYPE=&quot;Text&quot; NAME=&quot;minute&quot; VALUE=&quot;12&quot; RANGE=&quot;0,59&quot; 
   MESSAGE=&quot;You must enter a minute value (0-59)&quot; VALIDATE=&quot;integer&quot;
REQUIRED=&quot;Yes&quot;&gt;
Second         &lt;CFINPUT TYPE=&quot;Text&quot; NAME=&quot;second&quot; VALUE=&quot;0&quot; RANGE=&quot;0,59&quot; 
   MESSAGE=&quot;You must enter a value for seconds (0-59)&quot; VALIDATE=&quot;integer&quot;
REQUIRED=&quot;Yes&quot;&gt;
&lt;/PRE&gt;
&lt;p&gt;&lt;INPUT TYPE=&quot;Submit&quot; NAME=&quot;&quot;&gt; &lt;INPUT TYPE=&quot;RESET&quot;&gt;
&lt;/cfform&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="HOUR">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">HOUR</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Number in the range 0-23</p>

  </td>
  </tr>
  </table>
</div>
<div id="MINUTE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">MINUTE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Number in the range 0-59</p>

  </td>
  </tr>
  </table>
</div>
<div id="SECOND">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">SECOND</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Number in the range 0-59</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
