You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can we, in a time plot, set the x_max value to be our largest number. It only takes a float, and converting to unix numbers doesn't seem to work:
from datetime import datetime
Convert the string to a datetime object
timestamp_str = "2020-05-04T10:22:21"
timestamp_dt = datetime.strptime(timestamp_str, "%Y-%m-%dT%H:%M:%S")
Convert the datetime object to a Unix timestamp (int)
unix_timestamp = int(timestamp_dt.timestamp())
Beta Was this translation helpful? Give feedback.
All reactions