Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 650 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 650 Bytes

PHP Time Constants

A helpful collection of time constants with their values in seconds. It saves time when developing an application and having to do the time conversions using math by hand. #firstworldpains

Feel free to use code, just please contribute your changes back to me.

Usage

T_{value of time}_{unit of time}

Example: 5 minutes in seconds

echo T_5_SECONDS;

Example: 1 month in seconds

echo T_1_MONTH;

Example: 2 weeks in seconds

echo T_2_WEEKS;