PHPackages                             guopuke/time-helper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. guopuke/time-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guopuke/time-helper
===================

A Universal processing time tool.

v1.0.0(7y ago)09MITPHPPHP &gt;=7.0

Since Oct 15Pushed 7y agoCompare

[ Source](https://github.com/qingeek/time-helper)[ Packagist](https://packagist.org/packages/guopuke/time-helper)[ RSS](/packages/guopuke-time-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

time-helper
===========

[](#time-helper)

**通用处理时间工具**

- 获取当前时间(默认格式 2018-10-15 12:51:19)
- 计算今天开始时间
- 计算今天还剩余多少秒
- 获取今天结束时间
- 将秒数转换为「天小时分秒」格式
- 根据开始时分、结束时分与当前时间判断实际起始日期（计算给定时分的跨天时间）
- 计算距离下次时间为偶数的剩余多少秒
- 获取指定前某月份的第一天与最后一天
- 根据开启时间及关闭时间, 自动计算离合法时间剩余多少秒, 自动顺延至第二天

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

2767d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/158244?v=4)[qing](/maintainers/qing)[@Qing](https://github.com/Qing)

---

Tags

phptimetime

### Embed Badge

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

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

430168.9M205](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)

PHPackages © 2026

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