# [PATCH] New date() format character - fix for the DATE_ATOM constant

- Thread: https://externals.io/message/21744
- Original archive: https://news-web.php.net/php.internals/21744
- Started by Hannes Magnusson on 2006-01-31T13:21:59+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21744 — Hannes Magnusson — 2006-01-31T13:21:59+00:00

URL: https://externals.io/message/21744#21744

Hi all

I'd like to propose a new `date()` format character, "P", which behaves
exactly like "O" except it adds colon between the hours and minutes.

This patch also fixes current `DATE_ATOM` constant to print out RFC3339
valid timestamps (bug #36224).

- Hannes

---

## #21745 — Derick Rethans — 2006-01-31T13:23:46+00:00

URL: https://externals.io/message/21744#21745 · In reply to: #21744

> I'd like to propose a new `date()` format character, "P", which behaves
> exactly like "O" except it adds colon between the hours and minutes.
> 
> This patch also fixes current `DATE_ATOM` constant to print out RFC3339
> valid timestamps (bug #36224).

Thanks, I'll add this to CVS in a short while (tonight most likely).

regards,
Derick
