Jump to content

Displaying Rounded Time


rodin

Recommended Posts

Hi All, 

    Looking to see if there is a way to round time to the nearest half hour, so no matter what time is displayed, the nearest half hour is displayed.  ie:  If time displayed is 1:12AM - regardless, round it up to 1:30AM -- 1:01AM still rounds to 1:30AM -- Is this possible? Was unable to find anything on google to do this.. Any help greatly appreciated :)

Link to comment
https://forums.phpfreaks.com/topic/57088-displaying-rounded-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.