HF RL Explorer

Task: Python datetime to string without microsecond component

Task: Python datetime to string without microsecond component: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that converts datetime instances to string format without the microsecond component. The desired output format is YYYY-MM-DD HH:MM:SS (e.g., 2011-11-03…

The task

You need to create a Python script that converts `datetime` instances to string format **without** the microsecond component. The desired output format is `YYYY-MM-DD HH:MM:SS` (e.g., `2011-11-03 11:07:04`).

Part of PrimeIntellect/Terminal-Lego-15k.