언어/Python
[Python] Library - dateutil.parser
쟈누
2022. 1. 13. 17:53
반응형
1. 라이브러리 정의
This module offers a generic date/time string parser which is able to parse most known formats to represent a date and/or time.
해당 모듈은 일반적인 날짜/시간 포멧으로 파싱이 가능한 날짜/시간 스트링 파서를 제공합니다.
2. 라이브러리 Functinos
parser.parse(parserinfo=None, **kwargs)[source]
Parse a string in one of the supported formats, using the parserinfo parameters.
Parameters:
|
Parameters:Returns:Raises:
|
Returns a datetime.datetime object or, if the fuzzy_with_tokens option is True, returns a tuple, the first element being a datetime.datetime object, the second a tuple containing the fuzzy tokens. |
|
3. 참고 링크
https://dateutil.readthedocs.io/en/stable/parser.html
parser — dateutil 2.8.2 documentation
Parameters: default – The default datetime object, if this is a datetime object and not None, elements specified in timestr replace elements in the default object. ignoretz – If set True, time zones in parsed strings are ignored and a naive datetime ob
dateutil.readthedocs.io
반응형