add strptime to script engine

This commit is contained in:
Elizabeth Esswein 2022-10-14 13:27:40 -04:00
parent 59e6ee2c8b
commit 8cc59eb337
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import json
import logging import logging
import os import os
import time import time
import _strptime # type: ignore
from datetime import datetime from datetime import datetime
from typing import Any from typing import Any
from typing import Callable from typing import Callable
@ -95,6 +96,7 @@ DEFAULT_GLOBALS.update(
"datetime": datetime, "datetime": datetime,
"time": time, "time": time,
"decimal": decimal, "decimal": decimal,
"_strptime": _strptime,
} }
) )
# This will overwrite the standard builtins # This will overwrite the standard builtins