Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 441 Bytes

File metadata and controls

11 lines (9 loc) · 441 Bytes

satorchipy -- Steve T.'s python stuff

datefunctions

a few tools for manipulating dates and times

  • isodate(date) : print date in ISO format. date is a datetime object
  • str2dt(str) : convert a string to a datetime object
  • tot_seconds(delta) : convert a timedelta to a total number of seconds
  • roundTime(d,roundTime) : round time to nearest minute (or whatever given by roundTime)