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 os
import time
import _strptime # type: ignore
from datetime import datetime
from typing import Any
from typing import Callable
@ -95,6 +96,7 @@ DEFAULT_GLOBALS.update(
"datetime": datetime,
"time": time,
"decimal": decimal,
"_strptime": _strptime,
}
)
# This will overwrite the standard builtins