add _to_ns to utils

This commit is contained in:
Ishaan Jaff 2024-06-06 21:30:55 -07:00
parent 92a3c062a7
commit 87df3a4a04

View file

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