Time to next quarter hour

Hi,

I have a 'now' variable that gives me the current time.
I would like this variable to give me the time of the next quarter hour.

Examples

  • If it is 03:12, the variable must be 03:15
  • If it is 07:25 the variable must be 07:30

Do you have any idea how I can proceed?

Thanks :-)

3 replies