Get current timestamp in UTC timezone.
RETURNS | DESCRIPTION |
str | Current timestamp in UTC timezone TYPE: str |
Source code in autogen/logger/logger_utils.py
| def get_current_ts() -> str:
"""Get current timestamp in UTC timezone.
Returns:
str: Current timestamp in UTC timezone
"""
return datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S.%f")
|