How to get runtime, start time and end time of finished run

Hi @pio-fina , thank you for reaching out with your questions and sharing your findings regarding the timestamps.

Regarding the UI - Yes your findings are correct. Currently, the Created column is displayed in UTC while the End Time is displayed in Local time. This is an issue we are aware of and we are working to make sure the timezones displayed across the UI are consistent. I will add your report to the open ticket and will keep you posted on the progress.

Regarding the timestamps you can use via the API:

  • run.createdAt is the best options for the Created time and runtime
  • To get the Runtime for a run, you may want to use run.summary['_wandb']['runtime'] rather than run.summary['_runtime']. summary['_runtime'] uses the timestamp from the summary which correspond to the timestamp for the latest update for the Run summary and may not be the same as when the Run is finished (i.e. when the scripts complete or wandb.finish() is called).
  • run.heartbeatAt is indeed the most reliable option to get the End Time of a run.

Please let me know if you have any further questions.