首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > jintervals

jintervals

  • 资源大小:3.73 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: javascript time format interval

资 源 简 介

jintervals - formatting time intervals jintervals is inspired by well-known date and time formatting functions, but is specific to intervals. It takes interval in seconds and produces string according to specified format. jintervals is a stand-alone library, not dependant of any JavaScript library. Only the development testsuite uses jQuery and QUnit. jintervals is localized. It currently supports English, Russian, Lithuanian, Finnish and Estonian, plus you can easily add your own. Examples Specifying number of decimal places: jintervals(65, "{MM}:{ss}"); --> 01:05 Hiding of zero values: jintervals(88, "{M?:}{s}"); --> 1:28jintervals(28, "{M?:}{s}"); --> 28 Full and abbreviated unit names: jintervals(75, "{Minutes} and {s.}"); --> 1 minute and 15s <
VIP VIP
  • Zzz 1天前 成为了本站会员

  • Katou Megumi 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 流浪 1天前 成为了本站会员

  • 也是一生 1天前 成为了本站会员

  • king666 2天前 成为了本站会员

  • ﹏約啶℡ 2天前 成为了本站会员

  • Long for 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 金. 2天前 成为了本站会员

0.191968s