question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[suggestion] Hour:minutes:seconds

See original GitHub issue

Hello,

Cleave.js is awesome, thank you !

I would like to know if there is a possibility to add a feature for time fields.

That would be nice if we could use it like the date :

var cleave = new Cleave('.input-element', { hour: true, hourPattern: ['H', 'm', 's'] });

Limiting H to 23, m to 59 and s to 59.

Or is there already a way I can get that behaviour ?

Thanks in advance

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
nosircommented, Apr 7, 2018

Reopen this. There might be a time option.

6reactions
FacundoGFlorescommented, Jun 21, 2017

@kedarv The problem there is cleave.js won’t recognize the days or months pattern, so if you type 33 it would be a valid input, in contrary the date property will validate it for you, I mean if you type 33 it will change to 31 in the input in the case of days.

+1 for the native support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Atomic clock scientists suggest shortening minute to 59 seconds
Atomic clock scientists suggest that a minute should be shortened to 59 seconds to re-align atomic clocks with Earth's increased rotation ...
Read more >
Total hours, minutes, and seconds from Duration
Total hours, minutes, and seconds from Duration ... I came up with to display seconds with totals under an hour in minutes :...
Read more >
Why is a minute divided into 60 seconds, an hour into 60 ...
Despite this suggestion, laypeople continued to use seasonally varying hours for many centuries. (Hours of fixed length became commonplace only ...
Read more >
Convert second into hh:mm (hours: Minutes) - ServiceNow
Solved: Hi All, Please advise how to convert duration result from second to hh:mm:ss (hours: Minutes: second). On change script- Script ...
Read more >
Solved: Re: How to get the hours,minutes,seconds,frac?
Hi All I Got it TextBetween(Timefield,'','.') as Hour, TextBetween(Timefield,'.',':') as Minute, TextBetween(Timefield,':',':') as Second, - 797069.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found