From a3e6d557b2c282f31edf73daa0a55832908c9c0b Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 6 Jun 2024 21:30:55 -0700 Subject: [PATCH] add _to_ns to utils --- litellm/proxy/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 776d700962..549b0f2abc 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -2837,3 +2837,7 @@ missing_keys_html_form = """ """ + + +def _to_ns(dt): + return int(dt.timestamp() * 1e9)