programming:php:date
This is an old revision of the document!
php : date
date(string $format, ?int $timestamp = null): string official
| Example | Explanation / Remarks |
|---|---|
| $d = date() | ? |
| $d = date(“y-m-d h:i:s”) | returns a string of current UTC time: y= |
| format specifiers: | |
| d | day-of-month, two digits, leading zero |
See also: official php **date** page See also: official php **datetime** page
programming/php/date.1654495592.txt.gz · Last modified: 2022/06/06 06:06 by levor
