Improve stream content
This commit is contained in:
parent
4a48079360
commit
e8dd1a549c
3 changed files with 26 additions and 10 deletions
|
@ -10,3 +10,7 @@ def parse_isoformat(isodate: str) -> datetime:
|
|||
|
||||
def now() -> datetime:
|
||||
return datetime.now(timezone.utc)
|
||||
|
||||
|
||||
def as_utc(dt: datetime) -> datetime:
|
||||
return dt.replace(tzinfo=timezone.utc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue