adeoladev/easydate
最新稳定版本:2.0.1
Composer 安装命令:
composer require adeoladev/easydate
包简介
A library that can generate an accurate date format from a simple sentence.
README 文档
README
EasyDate is a library that can generate an accurate date format from a simple sentence.
Installation
JavaScript
npm i @adeoladev/easydate
PHP
composer require adeoladev/easydate
Usage
EDate('10 days ago','dmy','short');
Supported sentences include any amount of days, weeks or months in the future and the past. Such as 3 weeks ago or 10 days from now. You can also use today to get the current date.
Supported formats include any combination of day/month/year such as dmy or mdy. And you can display it in either short or long form.
License
MIT. Copyright (c) 2021 Adeola Boye.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-29