Skip to content

Commit 0090a8e

Browse files
BUG: support %z in Timestamp
1 parent e213399 commit 0090a8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ class Timestamp(_Timestamp):
737737
# microsecond[, nanosecond[, tzinfo]]]]]])
738738
ts_input = datetime(ts_input, freq, tz, unit or 0,
739739
year or 0, month or 0, day or 0)
740+
# GH 25016
741+
# support %z (offset) with %f (microsecond)
740742
if isinstance(hour, timezone):
741743
print("hello")
742744
nanosecond = minute

0 commit comments

Comments
 (0)