Skip to content

Small typo in documentation substract method #925

@qdesmedt

Description

@qdesmedt
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

There is a small typo in the doc for the pendulum object's subtract method.

https://github.com/python-pendulum/pendulum/blob/master/docs/docs/addition_subtraction.md?plain=1#L67

>>> dt = dt.subtract(minutes=1)
'2012-01-28 01:01:00'
>>> dt = dt.subtract(minutes=24)
'2012-01-28 00:00:00'

The result of dt.subtract(minutes=24) is wrong, it should be 2012-01-28 00:37:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions