format(format c)

a-antemeridiemandpostmeridiemd-dayofmonth(noleadingzero)dd-dayofmonth(twodigit)o-dayofyear(noleadingzeros)oo-dayofyear(threedigit)D-daynameshortDD-…

大家好,又见面了,我是你们的朋友全栈君。

a  - ante meridiem and post meridiem
d  - day of month (no leading zero)
dd - day of month (two digit)
o  - day of year (no leading zeros)
oo - day of year (three digit)
D  - day name short
DD - day name long
g  - 12-hour hour format of day (no leading zero)
gg - 12-hour hour format of day (two digit)
h  - 24-hour hour format of day (no leading zero)
hh - 24-hour hour format of day (two digit)
u  - millisecond of second (no leading zeros)
uu - millisecond of second (three digit)
i  - minute of hour (no leading zero)
ii - minute of hour (two digit)
m  - month of year (no leading zero)
mm - month of year (two digit)
M  - month name short
MM - month name long
S  - ordinal suffix for the previous unit
s  - second of minute (no leading zero)
ss - second of minute (two digit)
y  - year (two digit)
yy - year (four digit)
@  - Unix timestamp (ms since 01/01/1970)
!  - Windows ticks (100ns since 01/01/0001)
'...' - literal text
'' - single quote

 

$.formatDateTime("yy-mm-dd hh:ii:ss", new Date(result))

 

https://plugins.jquery.com/tag/format/

 

插件下载地址:

https://plugins.jquery.com/formatDateTime/

使用说明:

https://github.com/agschwender/jquery.formatDateTime/blob/1.1.4/README.md

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/127824.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 怎么生成pkl文件_python unzip

    怎么生成pkl文件_python unzip我在训练UCF101数据集的时候,遇到一个大高玩使用pkl文件,一开始使用它们的数据炮的好好的。后来开始跑自己的数据时,就出问题了。不知道这个pkl到底是个什么东西。原始的那个大高玩的ucf101的标签数据读取出来是这个样的:[‘PommelHorse’,’Surfing’,’HammerThrow’,’PlayingViolin’,’WallPushups’,’PullUps’,’PizzaTossing’,’SalsaSpin’,’Shotput’,’CricketShot’,

    2022年9月4日
  • coolfire黑客入门教程系列之(八)最后部分!

    coolfire黑客入门教程系列之(八)最后部分!作者glayjun@2005-06-0309:46:25我将coolfire黑客入门教程系列之(八)这篇教程为开了三部分!!这是最后的部分!!不要再问我coolfire是谁啊!!!呵呵!!我怕!!林正隆,中国台湾著名黑客,中国黑客领军人物。2011年获得COG信息安全终身成就奖林正隆-百度百科说明:本系列文章是整理Coolfire的8篇黑客入门文章,因在浏览网上相关文章的时候,要…

    2022年5月31日
  • 利用NFS client provisioner动态提供Kubernetes后端存储卷–安装指南与实践[通俗易懂]

    利用NFS client provisioner动态提供Kubernetes后端存储卷–安装指南与实践[通俗易懂]利用NFS client provisioner动态提供Kubernetes后端存储卷–安装指南与实践

    2022年4月21日
  • AI经典案例_人工智能挑战

    AI经典案例_人工智能挑战来源:Stanford编辑:好困David「AI100」报告第二弹!本次报告评估了2016年至2021年间人工智能的发展,涵盖14大问题,探讨了人工智能发展的关键领域。主题是「人工智能在…

    2022年9月27日
  • origin柱状图怎么调整柱间距_origin断层柱状图

    origin柱状图怎么调整柱间距_origin断层柱状图minortickets指的是每个主刻度区间内显示几个次刻度!

    2022年9月30日
  • hibernate和mybatisplus区别_Mybatis框架

    hibernate和mybatisplus区别_Mybatis框架我是一名java开发人员,hibernate以及mybatis都有过学习,在java面试中也被提及问道过,在项目实践中也应用过,现在对hibernate和mybatis做一下对比,便于大家更好的理解和学习,使自己在做项目中更加得心应手。第一方面:开发速度的对比就开发速度而言,Hibernate的真正掌握要比Mybatis来得难些。Mybatis框架相对简单很容易上手,但也相对简陋些

    2022年9月11日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号