Skip to content

Conversation

@yjeanrenaud
Copy link

timestamp is not a method but a property

Pull Request Checklist

  • [na ] 🧪 Added tests for changed code.
  • [na] 🛠️ All tests pass when run locally (run tox or make test to find out!).
  • [na ] 🧹 All linting checks pass when run locally (run tox -e lint or make lint to find out!).
  • 📚 Updated documentation for changed code.
  • [na] ⏩ Code is up-to-date with the master branch.

Description of Changes

i just changed a small typo in the readme that bugged me

timestamp is not a method but a property
@codecov
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (403c29f) to head (23a3737).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1204   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         2324      2334   +10     
  Branches       357       357           
=========================================
+ Hits          2324      2334   +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

<Arrow [2013-05-11T13:23:58.970460-07:00]>
>>> local.timestamp()
>>> local.timestamp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrow timestamp is a method. If I recall correctly, it was a property in the past.

Latest:

>>> import arrow
>>> arrow = arrow.Arrow(2015, 3, 12)
>>> arrow.timestamp
<bound method Arrow.timestamp of <Arrow [2015-03-12T00:00:00+00:00]>>
>>> arrow.timestamp()
1426118400.0

@jadchaar jadchaar closed this Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants