Datejs JavaScript日期库

程序名称:Datejs

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

Datejs 介绍

Date.js 是一个开源的JavaScript库,用来解析、格式化和处理日期数据,支持多种语言的日期格式处理。

示例代码

Date.today() // Returns today’s date, with time set to 00:00 (start of day).

Date.today().next().friday() // Returns the date of the next Friday.
Date.today().last().monday() // Returns the date of the prevIoUs Monday.

new Date().next().march() // Returns the date of the next march.
new Date().last().week() // Returns the date one week ago.

Date.today().is().friday() // Returns true|false if the day-of-week matches.
Date.today().is().fri() // Abbreviated day names.

Date.today().is().november() // Month names.
Date.today().is().nov() // Abbreviated month names.

Datejs 官网

http://www.datejs.com/

相关编程语言

MuPlayer 是一款跨平台、轻量级的音频播放解决方案,...
OS FLV 是一个 开源和可嵌入网页的flv播放器。 这个...
DewPlayer音乐播放器,样式很简单,而且很实用.播放器...
JW FLV MEDIA PLAYER是一个开源的在网页上使用的Fla...
Speakker 是一个基于 Web 浏览器的音乐播放器,只提...
Player Framework 是一个开源的支持 HTML5 的视频播...