Round date() up to next whole hour

Discussion in 'PHP' started by tintumon, Sep 11, 2010.

  1. #1
    After I have calculated a new time from date("Y-m-d H:i:s"), I want to round it up to the next hour so:

    2010-05-22 08:01:20 will become 2010-05-22 09:00:00
     
    tintumon, Sep 11, 2010 IP
  2. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #2
    lowridertj, Sep 11, 2010 IP