polaris.e3sm.init.inputdata.set_creation_date

polaris.e3sm.init.inputdata.set_creation_date(config: PolarisConfigParser, section: str) → str[source]

Set the creation date to today if it is not already set, and return it.

Called at setup so the date lands in the work directory’s config file. Re-running a step then reuses the date it was set up with, rather than silently renaming every staged file to today’s.

Parameters:
Returns:

str – The creation date, as YYYYMMDD.