MCPcopy Create free account
hub / github.com/ccxt/ccxt / from_datetime

Method from_datetime

python/ccxt/static_dependencies/msgpack/ext.py:163–168  ·  view source on GitHub ↗

Create a Timestamp from datetime with tzinfo. :rtype: Timestamp

(dt)

Source from the content-addressed store, hash-verified

161
162 @staticmethod
163 def from_datetime(dt):
164 """Create a Timestamp from datetime with tzinfo.
165
166 :rtype: Timestamp
167 """
168 return Timestamp.from_unix(dt.timestamp())

Callers 1

_packMethod · 0.80

Calls 1

from_unixMethod · 0.80

Tested by

no test coverage detected