原文:https://www.jianshu.com/p/6335b4464679

 

由于咱们是东8区,返回的是 1970-01-01 08:00:00 所以需要减去 8 小时

select date_format(date_sub(from_unixtime(288), INTERVAL 8 HOUR), '%H:%i:%s') from dual;
 
Mysql 将秒数转换成时分秒形式
 
 
 

相关文章:

  • 2021-10-02
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-02-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-11-26
相关资源
相似解决方案