Test Failed
Push — master ( 3b2725...be4dc6 )
by Chris
01:25
created

str2dt()   A

Complexity

Conditions 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
1
"""Date and date-time related filters."""
2
3
from dateutil.parser import parse as dtparse
4
5
6
def str2dt(timestr):
7
    """Convert a string date to a real date.
8
9
    Args:
10
        timestr (str) - the datetime as a raw string.
11
    Returns:
12
        dateutil.parser.parse - the parsed datetime object.
13
    """
14
    return dtparse(timestr)
15