PHPackages                             guoguo882010/time - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. guoguo882010/time

ActiveLibrary

guoguo882010/time
=================

time tools

1.0.0(5y ago)022MITPHPPHP &gt;=7.0

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/guoguo882010/time)[ Packagist](https://packagist.org/packages/guoguo882010/time)[ RSS](/packages/guoguo882010-time/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

时间助手工具
======

[](#时间助手工具)

---

Time::today() 返回今日开始和结束的时间戳

Time::tomorrow() 返回明天开始和结束的时间戳

Time::dayAfterTomorrow() 返回后天开始和结束的时间戳

Time::yesterday() 返回昨日开始和结束的时间戳

Time::week() 返回本周开始和结束的时间戳

Time::lastWeek() 返回上周开始和结束的时间戳

Time::nextWeek() 返回下周开始和结束的时间戳

Time::month() 返回本月开始和结束的时间戳

Time::lastMonth() 返回上个月（环比）开始和结束的时间戳

Time::lastMonth1ToToday() 回上个月得1号到上个月的今天时间戳 例如：今天是3月15号，那么返回2月1号到2月15号时间戳

Time::lastMonthToday() 返回上个月得今天时间戳

Time::nextMonth() 返回下月开始和结束时间戳

Time::year() 返回今年开始和结束的时间戳

Time::lastYear() 返回去年开始和结束的时间戳

Time::dayToNow() 获取几天前零点到现在/昨日结束的时间戳

Time::daysAgo() 返回几天前的时间戳

Time::daysAfter()返回几天后的时间戳

Time::daysToSecond() 天数转换成秒数

Time::weekToSecond() 周数转换成秒数

Time::dateToTimestamp() 给定一个日期（例：2021-02-13）返回这个日期的开始-结束时间戳

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1857d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b57028d0ae01c0a3e0a63cf818bff6b9d6ec8f8b92c506ac6a344d42e1dfea8?d=identicon)[gk](/maintainers/gk)

---

Top Contributors

[![guoguo882010](https://avatars.githubusercontent.com/u/3445260?v=4)](https://github.com/guoguo882010 "guoguo882010 (1 commits)")

### Embed Badge

![Health badge](/badges/guoguo882010-time/health.svg)

```
[![Health](https://phpackages.com/badges/guoguo882010-time/health.svg)](https://phpackages.com/packages/guoguo882010-time)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
