mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
add lru_cache maxsize for python 3.7 support
This commit is contained in:
@ -262,7 +262,7 @@ class timestamp:
|
|||||||
return f'timestamp(string={self.string!r}, format={self.format}, naive={self.naive}, utc={self.utc})'
|
return f'timestamp(string={self.string!r}, format={self.format}, naive={self.naive}, utc={self.utc})'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@lru_cache
|
@lru_cache(maxsize=512)
|
||||||
def _parse_dt(dt_string):
|
def _parse_dt(dt_string):
|
||||||
"""
|
"""
|
||||||
Input a date-time text string of several formats and convert to
|
Input a date-time text string of several formats and convert to
|
||||||
|
Reference in New Issue
Block a user