function getTime(time) {
if (!time) {
return
}
var date = new Date(parseInt(time))
var seperator1 = '-'
var year = date.getFullYear()
var month = date.getMonth() + 1
var strDate = date.getDate()
var hours = date.getHours()
var minutes = date.getMinutes()
var second = date.getSeconds()
if (month >= 1 && month <= 9) {
month = '0' + month
}
if (strDate >= 0 && strDate <= 9) {
strDate = '0' + strDate
}
if (hours >= 0 && hours <= 9) {
hours = '0' + hours
}
if (minutes >= 0 && minutes <= 9) {
minutes = '0' + minutes
}
if (second >= 0 && second <= 9) {
second = '0' + second
}
var currentdate = year + seperator1 + month + seperator1 + strDate + ' ' + hours + ':' + minutes + ':' + second
return currentdate
}

LOVE_tenYear
- 粉丝: 192
最新资源
- Oracle数据库架构与基础管理.pptx
- Overlay网络虚拟化功能测评方案.pdf
- PolarDB-O的Oracle平滑迁移方案.pdf
- PostgreSQL集群监控系统方案.pptx
- PostgreSQL平台新技术特性介绍.pptx
- PowerVM--安全及线性扩展的、无损硬件性能的虚拟化技术与案例.doc
- Puppet自动化运维体系介绍与Func应用实例.docx
- Python版本性能测试对比分析.docx
- RabbitMQ快速入门.doc
- RedHat-Ceph分布式存储指南-块设备模块.pdf
- RedHat智能制造解决方案.pptx
- Redis服务端优化最佳实践.docx
- Redis-运行的最佳平台-K1-Power.doc
- RG-DDI网络核心服务设备产品白皮书.docx
- RocksDB-前身今世之分解(NoSQL系列分享).doc
- 深入探索HBase学习之旅
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



评论10