Skip to content

Returned datetime is not accurate #14

Closed Answered by seballgeyer
shambakey1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

You will need to use the following function

gns.gn_datetime.j2000_to_pydatetime(d[0].index[0][0])

this will return

datetime.datetime(2022, 1, 1, 0, 0)

inside gnssanalysis datetime are stored as number of seconds since J2000 (01-01-2000T12:00:00) whereas
the datetime library has its 0 being 01-01-1970T00-00-00, the difference of origin time explain the difference in results.

Best regards

Sébastien

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shambakey1
Comment options

Answer selected by shambakey1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants