tangar Posted October 28, 2017 Share Posted October 28, 2017 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. Link to comment 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 Link to comment 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. Link to comment 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... Link to comment 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" :} Link to comment 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 Link to comment 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". Link to comment 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. Link to comment 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() Link to comment Share on other sites More sharing options...
kicken Posted October 28, 2017 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. Link to comment 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.