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 |
programming/php/date.1654495636.txt.gz · Last modified: 2022/06/06 06:07 by levor