Re: Newbie needs recommendation for fast learning a little php.
[email protected] Sat, 03 Jul 2021 00:08:18 -0400
| Newsgroups | comp.lang.php,alt.comp.lang.php,alt.php |
|---|---|
| Organization | Newshosting.com - Highest quality at a great price! www.newshosting.com |
| Message-ID | <[email protected]> |
On Fri, 2 Jul 2021 20:01:13 -0400, John-Paul Stewart <[email protected]> wrote: >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). D'oh! I'm going back and forth so much here that I missed that entirely. Thanks a lot for pointing out my error. >You probably want H:i for hour and minutes; hour >and month is an odd pairing! Yes, the page gives the right modification time now. Thanks a lot. >https://www.php.net/manual/en/datetime.format.php