Is there ever a good reason to store time not in UTC?

前端 未结 7 1774
失恋的感觉
失恋的感觉 2021-02-07 04:31

I am wondering if there are any good reasons to ever store time information in anything other that UTC (GMT)? I believe that this is a solid rule for all software engineering. T

7条回答
  •  -上瘾入骨i
    2021-02-07 05:06

    In an embedded system you might well receive the time from a source in some sort of "ticks past epoch" form.

    If the time is updated relatively frequently, and displayed relatively infrequently, then you might as well store it in the same way it's supplied to you and only convert it for display when needed.

    In general, though, UTC is the way to go unless there are other considerations.

提交回复
热议问题