MYSQL time rounding to nearest hour using TIME_FORMAT, 12 hour but incorrectly applies AM to everything

后端 未结 0 1911
感情败类
感情败类 2020-12-12 02:30

I am rounding time to the nearest hour using the query below:

SELECT post_id, DeliveryDate, TIME_FORMAT(DeliveryTime, \'%h:00:00 %p\') AS rounded_time FROM `o         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题