开发者

Extjs-Adding seconds to timestamp

开发者 https://www.devze.com 2023-03-10 18:48 出处:网络
I have a form with timestamp field with 1 minute increment but i want seconds to be included to too. how to do it? is there a way to add seconds to timestamp? can someone help plea开发者_如何学JAVAse?

I have a form with timestamp field with 1 minute increment but i want seconds to be included to too. how to do it? is there a way to add seconds to timestamp? can someone help plea开发者_如何学JAVAse?


ExtJs has a very rich Date function. To get the seconds timestamp:

var seconds = (new Date()).format('U');
0

精彩评论

暂无评论...
验证码 换一张
取 消