@@ -1104,7 +1104,7 @@ cdef class Day(Tick):
1104
1104
Examples
1105
1105
--------
1106
1106
You can use the parameter ``n`` to represent a shift of n days.
1107
- >>> from pandas.tseries.offsets import Day
1107
+ >>> from pandas.tseries.offsets import Day
1108
1108
>>> ts = pd.Timestamp(2022, 12, 9, 15)
1109
1109
>>> ts.strftime('%a %d %b %Y %H :%M ')
1110
1110
'Fri 09 Dec 2022 15:00'
@@ -1140,7 +1140,7 @@ cdef class Hour(Tick):
1140
1140
--------
1141
1141
You can use the parameter ``n`` to represent a shift of n hours.
1142
1142
1143
- >>> from pandas.tseries.offsets import Hour
1143
+ >>> from pandas.tseries.offsets import Hour
1144
1144
>>> ts = pd.Timestamp(2022, 12, 9, 15)
1145
1145
>>> ts.strftime('%a %d %b %Y %H :%M ')
1146
1146
'Fri 09 Dec 2022 15:00'
@@ -1176,7 +1176,7 @@ cdef class Minute(Tick):
1176
1176
--------
1177
1177
You can use the parameter ``n`` to represent a shift of n minutes.
1178
1178
1179
- >>> from pandas.tseries.offsets import Minute
1179
+ >>> from pandas.tseries.offsets import Minute
1180
1180
>>> ts = pd.Timestamp(2022, 12, 9, 15)
1181
1181
>>> ts.strftime('%a %d %b %Y %H :%M :%S ')
1182
1182
'Fri 09 Dec 2022 15:00:00'
@@ -1212,7 +1212,7 @@ cdef class Second(Tick):
1212
1212
--------
1213
1213
You can use the parameter ``n`` to represent a shift of n seconds.
1214
1214
1215
- >>> from pandas.tseries.offsets import Second
1215
+ >>> from pandas.tseries.offsets import Second
1216
1216
>>> ts = pd.Timestamp(2022, 12, 9, 15)
1217
1217
>>> ts.strftime('%a %d %b %Y %H :%M :%S ')
1218
1218
'Fri 09 Dec 2022 15:00:00'
0 commit comments