15 lines
325 B
Python
15 lines
325 B
Python
"""
|
|
Timing utilities for COBY system.
|
|
"""
|
|
|
|
from datetime import datetime, timezone
|
|
|
|
|
|
def get_current_timestamp() -> datetime:
|
|
"""Get current UTC timestamp"""
|
|
return datetime.now(timezone.utc)
|
|
|
|
|
|
def format_timestamp(timestamp: datetime) -> str:
|
|
"""Format timestamp as ISO string"""
|
|
return timestamp.isoformat() |