Skip to main content
Participant
9月 27, 2006 4:15 午後 UTC
質問

Convert number of seconds since January 1, 1970 00:00:00 (epoch time) to a datetime format



I have a code that should convert number of seconds since January 1, 1970 00:00:00 (epoch time) to
a datetime format. It uses something like the following:

DateAdd("s",mydateinsecs,CreateDateTime(1970,1,1))

The problem is if the date is in DST (daylight savings time), 1 extra hour will be added to the resulting time by DateAdd().

Does someone how to fix it?
    このトピックへの返信は締め切られました。

    返信数 1

    Inspiring
    9月 27, 2006 4:36 午後 UTC
    VictorSotnikov wrote:
    > The problem is if the date is in DST (daylight savings time), 1 extra hour
    > will be added to the resulting time by DateAdd().


    http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=77223B6A-20ED-7DEE-2AB7FBB1F37ABD77
    翻訳