Skip to content

Commit 9dcffee

Browse files
committed
update comments
1 parent 93f8883 commit 9dcffee

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

api_core/google/api_core/datetime_helpers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,15 @@ def from_iso8601_time(value):
116116

117117

118118
def from_rfc3339(value):
119+
<<<<<<< HEAD
120+
"""Convert an RFC3339-format timestamp to a native datetime.
121+
122+
Supported formats include those without fractional seconds, or with
123+
any fraction up to nanosecond precision.
124+
=======
119125
"""Convert a nanosecond-precision or if nanoseconds are missing
120126
microsecond-precision timestamp to a native datetime.
127+
>>>>>>> 06bee67b097e485a58415d218f3ac421a04d3d6a
121128

122129
.. note::
123130
Python datetimes do not support nanosecond precision; this function
@@ -173,13 +180,16 @@ def from_rfc3339_nanos(value):
173180
ValueError: If the timestamp does not match the RFC3339
174181
regular expression.
175182
"""
183+
<<<<<<< HEAD
184+
=======
176185
# Raise deprecation warnings for things we want to go away.
177186
warnings.warn(
178187
"The `from_rfc3339_nanos` function is deprecated"
179188
" use `from_rfc3339` instead.",
180189
DeprecationWarning,
181190
stacklevel=2,
182191
)
192+
>>>>>>> 06bee67b097e485a58415d218f3ac421a04d3d6a
183193
return from_rfc3339(value)
184194
185195

0 commit comments

Comments
 (0)