Convert seconds to dateItems
Posted: Mon Apr 15, 2013 4:19 am
Hi All,
I am using the "convert" function to convert a GPS time (UTC/GMT) into local time.
I am using the following code but I have found that it "seems" to apply the GMT offset of the host machine when it does the conversion and I need to be able to DISABLE this and just get it convert into GMT zero offset.
As an exmaple, tSeconds = 1365975270
The result I get is = "2013,4,15,7,34,30,2" according to an online converter this is the result when you convert to my local offset (GMT+10)
anyone got any ideas?
I am using the "convert" function to convert a GPS time (UTC/GMT) into local time.
I am using the following code but I have found that it "seems" to apply the GMT offset of the host machine when it does the conversion and I need to be able to DISABLE this and just get it convert into GMT zero offset.
As an exmaple, tSeconds = 1365975270
Code: Select all
convert tSeconds from seconds to dateItems
anyone got any ideas?