Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.63k stars 2.84k forks source link

[ServiceBus] Replace isodate for iso8601 (datetime/timedelta) strings #12704

Closed YijunXieMS closed 3 years ago

YijunXieMS commented 4 years ago

ServiceBus management client uses isodate to serialize and deserialize iso8601 datetime/duration string. isodate is also used in msrest.

msrest may replace isodate with aniso8601 to parse iso8601 strings some day because isodate could be desupported. But aniso8601 isn't bidirectional. It doesn't serialize a datetime or timedelta to iso8601 string. So msrest will write its own code to serialize datetime/timedelta. Refer to this msrest issue.

msrest exposes type isodate.duration to users when an iso8601 duration string has year or month. ServiceBus doesn't have year or month in the duration string. So ServiceBus doesn't expose isodate.duration to users. This makes SB easy to replace isodate with any new solutions.

lmazuel commented 3 years ago

No needed at least for now, closing