Implement a way to send watch events through GQL
This commit is contained in:
1 parent
cac9b29587
commit
40000cf295
5 files changed
+98
-38
No files matched your search
@@ -107,6 +107,10 @@ def timestamp(string: str) -> datetime:
|
||||
return datetime.strptime(string, "%Y-%m-%dT%H:%M:%SZ").replace(tzinfo=timezone.utc)
|
||||
|
||||
|
||||
def isonow() -> str:
|
||||
return datetime.now(timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", 'Z')
|
||||
|
||||
|
||||
CHARS_ASCII = string.ascii_letters + string.digits
|
||||
CHARS_HEX_LOWER = string.digits + "abcdef"
|
||||
CHARS_HEX_UPPER = string.digits + "ABCDEF"
|
||||
|
||||
Reference in new issue
Block a user