FlexibleParser code
DateParser code (.NET/C#) >
Time zones
Additionally to extending the default .NET date/time (parsing) functionalities, another main feature of DateParser is having a comprehensive support for time zones. This part is eminently defined by a somehow complex set of hardcoded values and classifications. At the most generic level, the main classes are the following:DateParser supports different types of time zones. All the main types have the same structure, defined by a class (inheriting from TimeZoneType) and an enum (implicitly convertible to that class), and are the following:DateParser has also some geography-related support for time zones. At the moment, only countries are fully supported through the classes Country and TimeZonesCountry. Other geographical entities like regions and cities are also partially supported via string recognition when instantiating some classes.