Skip to content

Commit 18dd6fa

Browse files
authored
Add nanoseconds to timestamps stub file (#50374)
* Add nanoseconds to timestamps stub file I also found the documentation to be lacking. I had to try it out to determine if `nanoseconds` would be giving me all nanoseconds until the next full second or just until the next full microsecond (the latter is the case). * Add fix to `whatsnew` * Revert "Add fix to `whatsnew`" This reverts commit 00ae238.
1 parent 77f167b commit 18dd6fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/tslibs/timestamps.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class Timestamp(datetime):
7070
@property
7171
def microsecond(self) -> int: ...
7272
@property
73+
def nanosecond(self) -> int: ...
74+
@property
7375
def tzinfo(self) -> _tzinfo | None: ...
7476
@property
7577
def tz(self) -> _tzinfo | None: ...

0 commit comments

Comments
 (0)