How do you set a timestamp with the SDK?
Modifying timestamps is something that can be done programmatically with the Flywheel SDK.
Our SDK uses ISO-8601 time/date format YYYY-MM-DDThh:mm:ss
. See ISO's website for more information on the format.
Timestamp is metadata on a Flywheel container and is a datetime object. You'll want to use that to set the actual data and time. You'll also want to make sure to set the time zone as Flywheel's UI will adjust the displayed time for what timezone your browser is in.
Here's the code in our Python SDK that could be used to set a session's timestamp to the current time.
session = fw.sessions.findOne('_id=576be8b259b2b6346719efe4')
timestamp = datetime('now')
timestamp.TimeZone = 'America/Los_Angeles'
session.update('timestamp', timestamp)