Debian Codegraph @

src/docs/formatting.html

raw
1 <!-- ############################################################################# -->
2 <!-- Formatting
3 <!-- ############################################################################# -->
4 <div id="tp-formatting">
5
6 <h2>Formatting Your Time</h2>
7
8 <p>The default format is "HH:mm". To use 12 hour time use something similar to: "hh:mm tt". When both "t" and lower case "h" are present in the timeFormat, 12 hour time will be used.</p>
9
10 <dl class="defs">
11 <dt>H</dt><dd>Hour with no leading 0 (24 hour)</dd>
12 <dt>HH</dt><dd>Hour with leading 0 (24 hour)</dd>
13 <dt>h</dt><dd>Hour with no leading 0 (12 hour)</dd>
14 <dt>hh</dt><dd>Hour with leading 0 (12 hour)</dd>
15 <dt>m</dt><dd>Minute with no leading 0</dd>
16 <dt>mm</dt><dd>Minute with leading 0</dd>
17 <dt>s</dt><dd>Second with no leading 0</dd>
18 <dt>ss</dt><dd>Second with leading 0</dd>
19 <dt>l</dt><dd>Milliseconds always with leading 0</dd>
20 <dt>c</dt><dd>Microseconds always with leading 0</dd>
21 <dt>t</dt><dd>a or p for AM/PM</dd>
22 <dt>T</dt><dd>A or P for AM/PM</dd>
23 <dt>tt</dt><dd>am or pm for AM/PM</dd>
24 <dt>TT</dt><dd>AM or PM for AM/PM</dd>
25 <dt>z</dt><dd>Timezone as defined by timezoneList</dd>
26 <dt>Z</dt><dd>Timezone in Iso 8601 format (+04:45)</dd>
27 <dt>'...'</dt><dd>Literal text (Uses single quotes)</dd>
28 </dl>
29
30 <p>Formats are used in the following ways:</p>
31 <ul>
32 <li>timeFormat option</li>
33 <li>altTimeFormat option</li>
34 <li>pickerTimeFormat option</li>
35 <li>$.datepicker.formatTime(format, timeObj, options) utility method</li>
36 <li>$.datepicker.parseTime(format, timeStr, options) utility method</li>
37 </ul>
38
39 <p>For help with formatting the date portion, visit the datepicker documentation for <a href="http://docs.jquery.com/UI/Datepicker/formatDate" title="jQuery UI Datepicker Formatting">formatting dates</a>.</p>
40 </div>