amoghrajesh commented on PR #61176:
URL: https://github.com/apache/airflow/pull/61176#issuecomment-3821957220

   @mrlimacz we do have support for `pendulum.DateTime`, does that not suffice 
your need? 
   
   Example:
   
   ```python
   >>> import pendulum
   >>> s = pendulum.datetime(2021, 1, 1, tz="UTC")
   >>> from airflow.sdk.serde import serialize, deserialize
   >>> serialize(s)
   {'__classname__': 'pendulum.datetime.DateTime', '__version__': 2, 
'__data__': {'timestamp': 1609459200.0, 'tz': {'__classname__': 
'builtins.tuple', '__version__': 1, '__data__': ['UTC', 
'pendulum.tz.timezone.Timezone', 1, True]}}}
   >>> deserialize(serialize(s))
   DateTime(2021, 1, 1, 0, 0, 0, tzinfo=Timezone('UTC'))
   >>> deserialize(serialize(s)) == s
   True
   ```


-- 
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