Skip to content

weeks property doesn't handle negative days count #459

@souliane

Description

@souliane

Hallo,

the weeks property is defined like that:

    @property
    def weeks(self):
        return self.days // 7

If you initialize with relativedelta(days=-1), the weeks property would return -1 instead of 0...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions