Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rospy.Time to datetime.datetime:

datetime.utcfromtimestamp(T.to_sec())

datetime.datetime to rospy.Time:

rospy.Time.from_sec(T.replace(tzinfo=datetime.timezone.utc).timestamp())