FreeOpcUa / python-opcua

LGPL Pure Python OPC-UA Client and Server

Home Page:http://freeopcua.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is TIMESTAMP UNSPECIFIED?

vvpnet opened this issue · comments

Hello colleagues!

I'm having problems here:

def win_epoch_to_datetime(epch):

The freeOpcUa client cannot correctly read the history from getHistoryData_service_default
because it has UNSPECIFIED defined as "-1" (1601-01-01 12:00AM UTC).
https://github.com/open62541/open62541/blob/ae74dc0071cc58cf96abeeaf7b9c6c39dd2ed286/plugins/historydata/ua_history_database_default.c#L45

And in open62541 UNSPECIFIED as LLONG_MIN "-9223372036854775808".
So is there a TIMESTAMP UNSPECIFIED?

The library is deprecated.
Please switch to : opcua-asyncio which also has a sync-wrapper, with very few changes in API**