obspy.core.utcdatetime._datetime_to_ns

_datetime_to_ns(dt)[source]

Use Python datetime object to return equivalent nanoseconds.

Parameters:dt (datetime.datetime) Python datetime object.
Returns:nanoseconds as an int.