Re: Newbie needs recommendation for fast learning a little php.
John-Paul Stewart <[email protected]> Fri, 2 Jul 2021 20:01:13 -0400
| Newsgroups | comp.lang.php,alt.comp.lang.php,alt.php |
|---|---|
| Message-ID | <[email protected]> |
On 2021-07-02 7:36 p.m., [email protected] wrote: >> echo "" .date("Y-m-d H:m",filemtime($pfile)); > > No matter what I do I always get the same minutes. You're not showing minutes at all. Lower case m is month number (as you used in the date). You probably want H:i for hour and minutes; hour and month is an odd pairing! https://www.php.net/manual/en/datetime.format.php