Internationalization and localization tools


Locale-Sensitive Python Method

classmethod datetime.fromisoformat(date_string)

Internationalization (I18n) Method Overview

The fromisoformat method returns a datetime object parsed from the given ISO-8601 format string.

Click here for more information.

I18n Issues

The fromisoformat class method parses the time zone with the offset in the form of +00.00, like '2019-08-28T14:34:25.518993+00:00'. The ISO-8601 standard also allows "Z" to be used instead of the zero offset, like 2019-08-28T14:34:25.518993Z but the dateutil library does not include support for parsing the Z suffix. If your dates use the Z suffix, like if produced by javascript, then it is necessary to modify the date string before parsing with my_date.replace('Z', '+00:00').

Please see Times and Dates for more information.

Globalyzer will detect this method and report it as an I18n issue. If you have determined that the call is being handled correctly, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.

Locale-Sensitive Python Methods

Lingoport internationalization and localization services and software