zcollection.partitioning.date.Date.join#

static Date.join(partition_scheme, sep)[source]#

Join a partitioning scheme.

Parameters:
  • partition_scheme (tuple[tuple[str, int], ...]) – The partitioning scheme to be joined.

  • sep (str) – The separator to be used.

Returns:

The joined partitioning scheme.

Return type:

str

Example

>>> partitioning = Date(variables=("time", ), resolution="D")
>>> partitioning.join((("year", 2020), ("month", 1), ("day", 1)),
...                   "/")
'year=2020/month=01/day=01'