jeudi 28 octobre 2021

How to get next 15th minute of time from given time in PHP

Is there a way of getting the next 15th minutes from given time?

For Example

  1. if input is 2021-08-26 12:00:37 then output should be 2021-08-26 12:15:00
  2. if input is 2021-08-26 12:30:37 then output should be 2021-08-26 13:15:00


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire