How can I easy convert a unix time to a weeks, days or months?
For example I got 604800 in unix time, which means thats 1 week, 3600 is 1 day etc.
I know this can be done using divisions, but I wonder if there is any ready-function for this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CakePHP have nice implementation of this, look at http://api13.cakephp.org/view_source/time-helper/#line-463