pylab_ml.common.data.datetime
- datetime(typ=None)[source]
Return the acual time as a string (year, month, day, _, hour, min, sec).
- eg. datetime() -> ‘20240615_123456’
datetime(typ=”str”) -> ‘2024/06/15 12:34:56’
- Parameters:
typ (str, optional) – If None, return the datetime in the format ‘YYYYMMDD_HHMMSS’.
- Returns:
The current date and time as a string in the specified format.
- Return type:
str