We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92419b9 commit 51425d7Copy full SHA for 51425d7
pandas/_libs/tslibs/timestamps.pyx
@@ -916,8 +916,7 @@ class Timestamp(_Timestamp):
916
"""
917
return cls(datetime.fromtimestamp(ts))
918
919
- @classmethod
920
- def strftime(cls, format):
+ def strftime(self, format):
921
922
Timestamp.strftime(format)
923
@@ -929,7 +928,7 @@ class Timestamp(_Timestamp):
929
928
format : str
930
Format string to convert Timestamp to string.
931
932
- return cls(datetime.strftime(format))
+ return datetime.strftime(self, format)
933
934
# Issue 25016.
935
@classmethod
0 commit comments