MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / pack

Method pack

opcua/ua/ua_binary.py:38–40  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

36class _DateTime(object):
37 @staticmethod
38 def pack(dt):
39 epch = ua.datetime_to_win_epoch(dt)
40 return Primitives.Int64.pack(epch)
41
42 @staticmethod
43 def unpack(data):

Callers

nothing calls this directly

Calls 1

packMethod · 0.45

Tested by

no test coverage detected