tangar Posted October 28, 2017 Share Posted October 28, 2017 (edited) Sorry for silly question, I tried to google it, but can't find an answer Why there: date('d-m-Y H:i:s') 'i' means minutes? It has to be 'm', but there is 'month' already, ok.. What does acronym 'i' stands for there? :DD Which word hides behind this glyph? Thanks. Edited October 28, 2017 by tangar Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/ Share on other sites More sharing options...
NotionCommotion Posted October 28, 2017 Share Posted October 28, 2017 Because it is declared to be so here: http://php.net/manual/en/function.date.php 1 Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553161 Share on other sites More sharing options...
Barand Posted October 28, 2017 Share Posted October 28, 2017 "i" is for minutes. They can't reuse "m" so opted for that. Live with it. 1 Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553162 Share on other sites More sharing options...
tangar Posted October 28, 2017 Author Share Posted October 28, 2017 So it's not somekind of acronym, just random glyph were chosen? I thought there is somekind of riddle. Like 'i' for iteration or something like this... Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553164 Share on other sites More sharing options...
Barand Posted October 28, 2017 Share Posted October 28, 2017 If it makes you feel better, think of them as "inutes" :} 2 Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553165 Share on other sites More sharing options...
benanamen Posted October 28, 2017 Share Posted October 28, 2017 'i' is the ninth letter and the third vowel in the ISO basic Latin alphabet. So that gives you 93. You then take the last number (3) and replicate it giving you 33. When you subtract 33 from 93 that gives you 60. There are 60 seconds in a minute, so that's why seconds is 'i'. Source: Benanamen Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553166 Share on other sites More sharing options...
dodgeitorelse3 Posted October 28, 2017 Share Posted October 28, 2017 'i' is the ninth letter and the third vowel in the ISO basic Latin alphabet. So that gives you 93. You then take the last number (3) and replicate it giving you 33. When you subtract 33 from 93 that gives you 60. There are 60 seconds in a minute, so that's why seconds is 'i'. Source: Benanamen there are 60 minutes in an hour, so that's why minutes is "i". Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553167 Share on other sites More sharing options...
Stefany93 Posted October 28, 2017 Share Posted October 28, 2017 If it makes you feel better, think of them as "inutes" :} LOL! The date format's formatting is confusing and makes no sense. In the past most devs will write a class and do stuff like $date->showMinutes(); Nowadays most people use DateTime class, but if you need to echo the date in one page, you wouldn't initialize a whole class, so date still has to be used with its crazy formatting. Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553169 Share on other sites More sharing options...
Barand Posted October 28, 2017 Share Posted October 28, 2017 The date format's formatting is confusing and makes no sense. How can you say that? date('jS F') is quite straightforward and intuitive BTW, the formatting in the dateTime class is exactly the same as for date() Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553174 Share on other sites More sharing options...
Solution kicken Posted October 28, 2017 Solution Share Posted October 28, 2017 If the first letter of a word can't be used as a shortcut because it's taken by something else, most people just move on to the second, then third, etc until one is available. So, minutes. Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553176 Share on other sites More sharing options...
tangar Posted October 28, 2017 Author Share Posted October 28, 2017 Great Now I understand the picture THANK YOU, GUYS! :DDD Quote Link to comment https://forums.phpfreaks.com/topic/305482-why-i-means-minuites-in-php-date-format/#findComment-1553182 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.