Tag

date-calculation

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Mar 18, 2024 · Backend Development

Getting the Current UNIX Timestamp in PHP and Common Use Cases

This article explains how to obtain the current UNIX timestamp in PHP using the built‑in time() function, demonstrates code examples for displaying the timestamp, calculating yesterday’s date, and sorting an array of timestamps, and discusses common scenarios where timestamps are useful.

Backend DevelopmentPHPUnix timestamp
0 likes · 4 min read
Getting the Current UNIX Timestamp in PHP and Common Use Cases
Laravel Tech Community
Laravel Tech Community
Jun 23, 2021 · Backend Development

PHP easter_days Function: Calculate Days from March 21 to Easter

The PHP easter_days function computes the number of days between March 21 and Easter for a specified year (or the current year by default), detailing its parameters, return value, and providing example usage with sample outputs.

BackendPHPdate-calculation
0 likes · 2 min read
PHP easter_days Function: Calculate Days from March 21 to Easter