pyrfu.pyrf.date_str module#

pyrfu.pyrf.date_str.date_str(tint, fmt: int = 1)[source]#

Creates a string corresponding to time interval for output plot naming.

Parameters:
  • tint (list of str) – Time interval.

  • fmt (int) –

    Format of the output :
    • 1 : “%Y%m%d_%H%M”

    • 2 : “%y%m%d%H%M%S”

    • 3 : “%Y%m%d_%H%M%S”_”%H%M%S”

    • 4 : “%Y%m%d_%H%M%S”_”%Y%m%d_%H%M%S”

Returns:

out – String corresponding to the time interval in the desired format.

Return type:

str