ye22st
V2EX  ›  问与答

如果有国际化需求,时区因素原因,那么 MySQL 时间格式是存储时间戳还是 datetime?

  •  
  •   ye22st · Nov 5, 2020 · 1074 views
    This topic created in 2023 days ago, the information mentioned may be changed or developed.

    如题,希望各位大佬能给个建议。

    还是说,数据库就存 DateTime 格式的时间,至于 PC 和 APP 端时间的显示,根据服务器时间去转换成对应时区的时间?

    cheng6563
        1
    cheng6563  
       Nov 5, 2020
    时间戳吧
    zm8m93Q1e5otOC69
        2
    zm8m93Q1e5otOC69  
       Nov 5, 2020 via Android
    时间戳
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:32 · PVG 22:32 · LAX 07:32 · JFK 10:32
    ♥ Do have faith in what you're doing.