时间格式化以及指定时区(time&&timezone)

工作中经常遇到按照指定格式的时间进行展示。可参考以下脚本逻辑满足需求 Date.prototype.PtTimeByFormat = function (fmt){ var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日
posted @ 2023-09-20 19:50  辉兔子  阅读(116)  评论(0编辑  收藏  举报