Module ImportFrom alias Import alias ImportFrom alias alias alias alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad orelse If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword Str orelse If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpDiv BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num BinOpPow Num Num BinOpPow Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad body Expr Str If Call NameLoad ListLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad body Pass orelse Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Print Str decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad keyword Call NameLoad decorator_list
N/A datetime datetime N/A pytz dateutil.rrule rrule DAILY HOURLY MONTHLY YEARLY dateutil.parser parse capture dateutil.tz tzlocal dateutil.tz tzoffset tzlocal get_localzone exceptions DeloreanInvalidDatetime dates Delorean is_datetime_naive datetime_timezone parse N/A N/A datetime_str timezone dayfirst yearfirst N/A None True True N/A N/A 
    Parses a datetime string and returns a `Delorean` object.

    :param datetime_str: The string to be interpreted into a `Delorean` object.
    :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any
        offsets passed as part of datetime_str will be ignored.
    :param dayfirst: Whether to interpret the first value in an ambiguous 3-integer date (ex. 01/05/09) as the day
        (True) or month (False). If yearfirst is set to True, this distinguishes between YDM and YMD.
    :param yearfirst: Whether to interpret the first value in an ambiguous 3-integer date (ex. 01/05/09) as the
        year. If True, the first number is taken to be the year, otherwise the last number is taken to be the year.

    .. testsetup::

        from delorean import Delorean
        from delorean import parse

    .. doctest::

        >>> parse('2015-01-01 00:01:02')
        Delorean(datetime=datetime.datetime(2015, 1, 1, 0, 1, 2), timezone='UTC')

    If a fixed offset is provided in the datetime_str, it will be parsed and the returned `Delorean` object will store a
    `pytz.FixedOffest` as it's timezone.

    .. doctest::

        >>> parse('2015-01-01 00:01:02 -0800')
        Delorean(datetime=datetime.datetime(2015, 1, 1, 0, 1, 2), timezone=pytz.FixedOffset(-480))

    If the timezone argument is supplied, the returned Delorean object will be in the timezone supplied. Any offsets in
    the datetime_str will be ignored.

    .. doctest::

        >>> parse('2015-01-01 00:01:02 -0500', timezone='US/Pacific')
        Delorean(datetime=datetime.datetime(2015, 1, 1, 0, 1, 2), timezone='US/Pacific')

    If an unambiguous timezone is detected in the datetime string, a Delorean object with that datetime and
    timezone will be returned.

    .. doctest::

        >>> parse('2015-01-01 00:01:02 PST')
        Delorean(datetime=datetime.datetime(2015, 1, 1, 0, 1, 2), timezone='America/Los_Angeles')

    However if the provided timezone is ambiguous, parse will ignore the timezone and return a `Delorean` object in UTC
    time.

        >>> parse('2015-01-01 00:01:02 EST')
        Delorean(datetime=datetime.datetime(2015, 1, 1, 0, 1, 2), timezone='UTC')

     N/A dt N/A capture datetime_str dayfirst dayfirst yearfirst yearfirst N/A timezone N/A N/A dt N/A N/A dt replace tzinfo None N/A do N/A Delorean datetime dt timezone timezone N/A N/A N/A N/A dt tzinfo None N/A N/A do N/A Delorean datetime dt timezone UTC N/A N/A N/A isinstance N/A dt tzinfo tzoffset N/A N/A utcoffset N/A N/A N/A dt tzinfo utcoffset None N/A total_seconds N/A N/A N/A utcoffset microseconds N/A N/A N/A utcoffset seconds N/A N/A N/A utcoffset days 24 3600 N/A 10 6 N/A 10 6 N/A tz N/A N/A pytz FixedOffset N/A total_seconds 60 N/A dt N/A N/A dt replace tzinfo None N/A do N/A Delorean dt timezone tz N/A N/A N/A isinstance N/A dt tzinfo tzlocal N/A N/A tz N/A get_localzone N/A dt N/A N/A dt replace tzinfo None N/A do N/A Delorean dt timezone tz N/A N/A dt N/A N/A N/A pytz utc normalize dt N/A dt N/A N/A dt replace tzinfo None N/A do N/A Delorean datetime dt timezone UTC N/A do N/A range_daily N/A N/A start stop timezone count N/A None None UTC None N/A N/A 
    This an alternative way to generating sets of Delorean objects with
    DAILY stops
     N/A N/A stops start start stop stop freq DAILY timezone timezone count count N/A range_hourly N/A N/A start stop timezone count N/A None None UTC None N/A N/A 
    This an alternative way to generating sets of Delorean objects with
    HOURLY stops
     N/A N/A stops start start stop stop freq HOURLY timezone timezone count count N/A range_monthly N/A N/A start stop timezone count N/A None None UTC None N/A N/A 
    This an alternative way to generating sets of Delorean objects with
    MONTHLY stops
     N/A N/A stops start start stop stop freq MONTHLY timezone timezone count count N/A range_yearly N/A N/A start stop timezone count N/A None None UTC None N/A N/A 
    This an alternative way to generating sets of Delorean objects with
    YEARLY stops
     N/A N/A stops start start stop stop freq YEARLY timezone timezone count count N/A stops N/A N/A freq interval count wkst bysetpos bymonth bymonthday byyearday byeaster byweekno byweekday byhour byminute bysecond timezone start stop N/A 1 None None None None None None None None None None None None UTC None None N/A N/A 
    This will create a list of delorean objects the apply to
    setting possed in.
     N/A N/A all N/A N/A N/A start None N/A is_datetime_naive start N/A N/A stop None N/A is_datetime_naive stop N/A N/A N/A N/A N/A DeloreanInvalidDatetime Provide a naive datetime object N/A N/A start None N/A N/A start N/A datetime_timezone timezone N/A dt N/A rrule freq interval interval count count wkst wkst bysetpos bysetpos bymonth bymonth bymonthday bymonthday byyearday byyearday byeaster byeaster byweekno byweekno byweekday byweekday byhour byhour byminute byminute bysecond bysecond until stop dtstart start N/A N/A dt N/A N/A dt replace tzinfo None N/A d N/A Delorean datetime dt timezone timezone N/A N/A d N/A epoch N/A N/A s N/A N/A N/A dt N/A N/A datetime utcfromtimestamp s N/A N/A Delorean datetime dt timezone UTC N/A flux N/A N/A N/A N/A N/A If you put your mind to it, you can accomplish anything. N/A utcnow N/A N/A N/A N/A N/A 
    Return a Delorean object for the current UTC date and time, setting the timezone to UTC.
     N/A N/A Delorean N/A now N/A N/A N/A N/A N/A 
    Return a Delorean object for the current local date and time, setting the timezone to the local timezone of the
    caller.
     N/A N/A Delorean timezone N/A get_localzone N/A