Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why does i stand for minutes in the Y-m-d H:i:s time format?

This is a pretty simple question, but I cound’t find an answer anywhere with various searches. When we have a time format in PHP like Y-m-d H:i:s it’s very easy to understand that:

Y = years
m = months
d = days
H = hours
s = seconds

But why are minutes represented with "i"? In other words, where does this naming convention come from?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

They couldn’t use m or M for minutes, because they were already used for the month. m is a numeric month, and M is the month abbreviation.

So they had to use a different letter that’s not already assigned. I assume they chose i because it’s the second letter of minute.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading