I want to do something like this
strtotime("next starting minute");
If the current time is 15:23:21, i want to get 15:24:00
Any ideas?
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.
Don’t use
strtotime()but usetime()andceil().This way, easy calculated you will always get the timestamp for the next minute. Because I divide the timestamp by 60, it will return the number of minutes. Ceiling this will get you the next minute. Then the timestamp again is multiplied by 60 to get the seconds, which is the timestamp you need.