mirror of
https://github.com/furyhawk/agent_delta.git
synced 2026-07-21 10:15:36 +00:00
14 lines
359 B
Python
14 lines
359 B
Python
"""Date and time utilities for agents."""
|
|
|
|
from datetime import UTC, datetime
|
|
|
|
|
|
def get_current_datetime() -> dict[str, str]:
|
|
"""Get the current date and time (UTC)."""
|
|
now = datetime.now(UTC)
|
|
return {
|
|
"date": now.strftime("%Y-%m-%d"),
|
|
"time": now.strftime("%H:%M:%S"),
|
|
"datetime": now.strftime("%Y-%m-%d %H:%M:%S"),
|
|
}
|