nosir / cleave.js

Format input text content when you are typing...
http://nosir.github.io/cleave.js
Apache License 2.0
17.95k stars 1.62k forks source link

Milliseconds for time formatting #496

Open igoriok1994 opened 5 years ago

igoriok1994 commented 5 years ago

Hi,

Is it possible to add in next versions milliseconds support?

Something like [ HH:mm:ss.SSS / HH:mm:ss.SS / HH:mm:ss.S ]. SSS - ms from 0 to 999 SS - ms from 0 to 99 S - ms from 0 to 9

It will be very useful update :)

image

EG:

//LIKE SSS 0 - 999
var cleave = new Cleave('.input-element', {
    time: true,
    timePattern: ['h', 'm', 's', 'ms3']
});

//LIKE SS  0 - 99
var cleave = new Cleave('.input-element', {
    time: true,
    timePattern: ['h', 'm', 's', 'ms2']
});

//LIKE S 0 - 9
var cleave = new Cleave('.input-element', {
    time: true,
    timePattern: ['h', 'm', 's', 'ms']
});
igoriok1994 commented 5 years ago

Up?

jakubmirejovsky commented 3 years ago

I would appreciate this as well

fawzanm commented 2 years ago

Is there a workaround for this?

ccfelix commented 1 year ago

up...