gnss/gnss_utils.py
2025-11-07 16:45:53 +05:00

5 lines
218 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from datetime import datetime, timezone
def current_utc_time():
"""Возвращает текущее UTC-время, для синхронизации с RTC"""
return datetime.now(timezone.utc).isoformat()