Comprehensive strftime and strptime implementation.
``` npm i chm-strtime ``` ## 使用说明 1.导入 ```js const {dateFormat} = require('strtime') ``` 2.使用 ```js dateFormat(时间戳)||dateFormat() //返回值是'yyyy-MM-dd hh:mm:ss'格式的时间 ``` ## 开源协议 ``` ISC ```
//string functions function capital(str) { if (!str) return '';
two date between year, month, day, hours, minutes, seconds
一些公共函数
This is a common utils library
A simple module for basic HH:mm format time calculations
A command-line utility for doing datetime arithmetic, parsing and formatting. A non-exhaustive list of features: * Generate sequences of datetimes using RFC 5545 recurrence rules. * Perform calendar and absolute duration arithmetic interchangeably in a way that is safe with respect to daylight saving time. * IANA time zone database support. * The ability to tag arbitrary data in a JSON lines format with datetimes. This works great for reformatting or localizing timestamps in log files. * Datetimes can be written in a variety of flexible formats. For example, `biff time fmt '5pm last thursday'`. * Compare and sort datetimes.
A command-line utility for doing datetime arithmetic, parsing and formatting. A non-exhaustive list of features: * Generate sequences of datetimes using RFC 5545 recurrence rules. * Perform calendar and absolute duration arithmetic interchangeably in a way that is safe with respect to daylight saving time. * IANA time zone database support. * The ability to tag arbitrary data in a JSON lines format with datetimes. This works great for reformatting or localizing timestamps in log files. * Datetimes can be written in a variety of flexible formats. For example, `bttf time fmt '5pm last thursday'`. * Compare and sort datetimes.
A simple but powerful Rust library for dealing with the time, both NTP and System. Contains wrappers for functions often buried in modules. Has extensive support for unusual epochs (Windows LDAP 100ns, MacOS and MacOS CFA, SAS 4GL, WebKit and Chromium 1μs). Supports timezone conversion, and addition/subtraction of various amounts