I'm making a text based PHP game. Every second there is an update, and update, the row time
gets selected from the database, containing for example 548991
. That means 548991
minutes have gone by, so that means that for example its the first year, the first month, the 4th day, the 7th hour and the 51th minute. How can i calculate that, so that the number 548991 results into: Year 1, Month 1, Day 4, 07:51 AM using PHP code?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Alot of extra effort is spent not answering this question. Also, Thew, I know you didn't give up, so answering your own question when you find a solution would have been good for your Karma.
My grandfather once told me you catch more flies with honey. I get what these guys are saying, but I just think we should all treat each other a little better.
Answering with some tags...
format date-diff
Answering with some code...
Answering removes this question from the unanswered list...
Peace