torch_ecg.utils.get_date_str

torch_ecg.utils.get_date_str(fmt: str | None = None)[source]

Get the current time in the str format.

Parameters:

fmt (str, optional) – Format of the string of date, default to "%m-%d_%H-%M".

Returns:

Current time in the str format.

Return type:

str