Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
123 views
in Technique[技术] by (71.8m points)

javascript - 如何在jQuery datetimepicker插件中包含秒?(How to include seconds in the jquery datetimepicker plugin?)

I am planning to use this 's datetimepicker plugin.

(我打算使用的datetimepicker插件。)

But in documentation also couldn't find about seconds part.

(但是在文档中也找不到大约几秒钟的时间。)

Can you guys help me how to provide seconds in this plugin.

(你们能帮助我如何在此插件中提供秒数吗?)

Seconds is the mandatory thing for the requirement or suggest any good MIT open license plugin which has seconds also for date and time.

(Seconds是要求的强制性内容,或建议任何具有日期和时间秒数的MIT开放许可证插件。)

  ask by Sandeep sandy translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

By adding

(通过添加)

 $('#reservationtime').daterangepicker({ timePicker: true, timePickerSeconds: true, timePickerIncrement: 30, locale: { format: 'MM/DD/YYYY hh:mm:ss' } }) 

It worked for displaying seconds in datetimePicker UI.

(它可以在datetimePicker UI中显示秒。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...