Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
121 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 Reply

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中显示秒。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...