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