polaris.ocean.model.get_time_interval_string

polaris.ocean.model.get_time_interval_string(days=None, seconds=None)[source]

Convert a time interval in days and/or seconds to a string for use in a model config option. If both are provided, they will be added

Parameters
  • days (float, optional) – A time interval in days

  • seconds (float, optional) – A time interval in seconds

Returns

time_str (str) – The time as a string in the format “DDDD_HH:MM:SS.SS”