Skip to content

Commit 4a1d222

Browse files
trentrichardson#577 Microseconds added to the timepicker
1 parent 9c19b54 commit 4a1d222

File tree

2 files changed

+112
-16
lines changed

2 files changed

+112
-16
lines changed

index.html

+24-1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ <h3>Localization Options</h3>
182182
<dt>millisecText</dt>
183183
<dd><em>Default: "Millisecond", A Localization Setting</em> - Label used to identify the millisecond slider.</dd>
184184

185+
<dt>microsecText</dt>
186+
<dd><em>Default: "Microsecond", A Localization Setting</em> - Label used to identify the microsecond slider.</dd>
187+
185188
<dt>timezoneText</dt>
186189
<dd><em>Default: "Timezone", A Localization Setting</em> - Label used to identify the timezone slider.</dd>
187190

@@ -245,6 +248,9 @@ <h3>Time Field Options</h3>
245248
<dt>showMillisec</dt>
246249
<dd><em>Default: null</em> - Whether to show the millisecond control. The default of null will use detection from timeFormat.</dd>
247250

251+
<dt>showMicrosec</dt>
252+
<dd><em>Default: null</em> - Whether to show the microsecond control. The default of null will use detection from timeFormat.</dd>
253+
248254
<dt>showTimezone</dt>
249255
<dd><em>Default: null</em> - Whether to show the timezone select.</dd>
250256

@@ -260,9 +266,12 @@ <h3>Time Field Options</h3>
260266
<dt>stepSecond</dt>
261267
<dd><em>Default: 1</em> - Seconds per step the slider makes.</dd>
262268

263-
<dt>stepMilliSec</dt>
269+
<dt>stepMillisec</dt>
264270
<dd><em>Default: 1</em> - Milliseconds per step the slider makes.</dd>
265271

272+
<dt>stepMicrosec</dt>
273+
<dd><em>Default: 1</em> - Microseconds per step the slider makes.</dd>
274+
266275
<dt>hour</dt>
267276
<dd><em>Default: 0</em> - Initial hour set.</dd>
268277

@@ -275,6 +284,9 @@ <h3>Time Field Options</h3>
275284
<dt>millisec</dt>
276285
<dd><em>Default: 0</em> - Initial millisecond set.</dd>
277286

287+
<dt>microsec</dt>
288+
<dd><em>Default: 0</em> - Initial microsecond set. Note: Javascript's native Date object does not natively support microseconds. Timepicker adds ability to simply Date.setMicroseconds(m) and Date.getMicroseconds(). Date comparisons will not acknowledge microseconds. Use this only for display purposes.</dd>
289+
278290
<dt>timezone</dt>
279291
<dd><em>Default: 0</em> - Initial timezone set.</dd>
280292

@@ -290,6 +302,9 @@ <h3>Time Field Options</h3>
290302
<dt>millisecMin</dt>
291303
<dd><em>Default: 0</em> - The minimum millisecond allowed for all dates.</dd>
292304

305+
<dt>microsecMin</dt>
306+
<dd><em>Default: 0</em> - The minimum microsecond allowed for all dates.</dd>
307+
293308
<dt>hourMax</dt>
294309
<dd><em>Default: 23</em> - The maximum hour allowed for all dates.</dd>
295310

@@ -302,6 +317,9 @@ <h3>Time Field Options</h3>
302317
<dt>millisecMax</dt>
303318
<dd><em>Default: 999</em> - The maximum millisecond allowed for all dates.</dd>
304319

320+
<dt>microsecMax</dt>
321+
<dd><em>Default: 999</em> - The maximum microsecond allowed for all dates.</dd>
322+
305323
<dt>hourGrid</dt>
306324
<dd><em>Default: 0</em> - When greater than 0 a label grid will be generated under the slider. This number represents the units (in hours) between labels.</dd>
307325

@@ -313,6 +331,9 @@ <h3>Time Field Options</h3>
313331

314332
<dt>millisecGrid</dt>
315333
<dd><em>Default: 0</em> - When greater than 0 a label grid will be genereated under the slider. This number represents the units (in milliseconds) between labels.</dd>
334+
335+
<dt>microsecGrid</dt>
336+
<dd><em>Default: 0</em> - When greater than 0 a label grid will be genereated under the slider. This number represents the units (in microseconds) between labels.</dd>
316337
</dl>
317338

318339
<h3>Other Options</h3>
@@ -363,6 +384,7 @@ <h3>Other Options</h3>
363384
minute: 10,
364385
second: 23,
365386
millisec: 45,
387+
microsec: 23,
366388
timezone: '-0400'
367389
}</pre>
368390
</dd>
@@ -390,6 +412,7 @@ <h2>Formatting Your Time</h2>
390412
<dt>s</dt><dd>Second with no leading 0</dd>
391413
<dt>ss</dt><dd>Second with leading 0</dd>
392414
<dt>l</dt><dd>Milliseconds always with leading 0</dd>
415+
<dt>c</dt><dd>Microseconds always with leading 0</dd>
393416
<dt>t</dt><dd>a or p for AM/PM</dd>
394417
<dt>T</dt><dd>A or P for AM/PM</dd>
395418
<dt>tt</dt><dd>am or pm for AM/PM</dd>

0 commit comments

Comments
 (0)