service_man/api/application/protocols/date_time.py

8 lines
172 B
Python
Raw Normal View History

2024-04-02 22:33:15 +03:00
from datetime import datetime
from typing import Protocol
class DateTimeProvider(Protocol):
def get_current_time(self) -> datetime:
raise NotImplementedError