add _to_ns to utils

This commit is contained in:
Ishaan Jaff 2024-06-06 21:30:55 -07:00
parent fcb1427a8c
commit a3e6d557b2

View file

@ -2837,3 +2837,7 @@ missing_keys_html_form = """
</body>
</html>
"""
def _to_ns(dt):
return int(dt.timestamp() * 1e9)