obspy.core.utcdatetime.UTCDateTime._from_datetime

UTCDateTime._from_datetime(dt, ms=0)[source]

Use Python datetime object to set current time.

Parameters:
  • dt (datetime.datetime) Python datetime object.
  • ms (float) extra seconds to add to current UTCDateTime object.