You can use the from_datetime method, and give the datetime a timezone.
from_datetime
But if you want the format to include timezones, then I think you can't because of the spec.
Activity
Avihais12344 commentedon Mar 29, 2024
You can use the
from_datetimemethod, and give the datetime a timezone.But if you want the format to include timezones, then I think you can't because of the spec.