alerrandro / returncentury
返回输入年份的世纪
1.2.0
2023-03-11 13:48 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-09-11 18:04:10 UTC
README
包用于返回输入年份的世纪。
要求
- PHP >= 7.4
- Composer
安装
使用 Composer 安装此包
composer require alerrandro/returncentury
使用方法
<?php require __DIR__ . '/vendor/autoload.php'; use Alerrandro\century\ReturnCentury; $century = ReturnCentury::century(1999); // 20; $century = ReturnCentury::centuryNow(); // 21
century 函数需要接收年份参数。
centuryNow 函数返回当前年份的世纪。
开发者
- LinkedIn - Alerrandro Borges
- 电子邮件 - alerrandrokaton@gmail.com