定制 m1ke/date-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

m1ke/date-helper

Composer 安装命令:

composer create-project m1ke/date-helper

包简介

Quick CLI date helper to avoid needing to check the reference

README 文档

README

Provides quick date formatting key in CLI.

Install with composer, global is ideal:

composer global require m1ke/date-helper

It's useful to have your composer global bin directory in your $PATH; the directory is usually: $HOME/.composer/vendor/bin/

If you have it in your $PATH you can run this from any command line with php-date-helper and it will produce the following output:

d/j Date of month (with/out leading zeroes)
D/l Day text (short/long)
S   Suffix st,nd,rd,th
z   Day of year
F/M Month text (long/short)
m/n Month (with/out leading zeroes)
Y/y Year (4/2 digit)
a/A am or pm
h/g Hour (12hr, with/out leading zeroes)
H/G Hour (24hr, with/out leading zeries)
i   Minutes
s   Seconds
u   Microseconds

Contributions to add more dates or improve wording/formatting are welcome!

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固