dstandish commented on code in PR #30083:
URL: https://github.com/apache/airflow/pull/30083#discussion_r1393355792


##########
airflow/utils/timezone.py:
##########
@@ -74,6 +77,18 @@ def utc_epoch() -> dt.datetime:
     return result
 
 
+def in_timezone(datetime: DateTime, tz: Timezone, dst_rule: str = 
pendulum.PRE_TRANSITION) -> DateTime:
+    """Convert a datetime to a timezone, but also allow for dst_rule override.
+
+    :param datetime: pendulum DateTime
+    :param tz: pendulum Timezone
+    :param dst_rule: pendulum.PRE_TRANSITION or pendulum.POST_TRANSITION
+    :return: localized datetime in timezone
+    """

Review Comment:
   ```suggestion
   
       :meta private:
       """
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to