About varocarbas.com


About me


Contact me


Visit customsolvers.com, my main website


Valid markup


Valid CSS


© 2015-2018 Alvaro Carballo Garcia


URL friendly


Optimised for 1920x1080 - Proudly mobile unfriendly

All projects in full-screen mode


Project 10

Project 9

Project 8

FlexibleParser code analysis:





Chromatic encryption

(v. 1.3)

Pages in customsolvers.com:

Upcoming additions

Failed projects

Active crawling bots:

Ranking type 2


FlexibleParser raw data:

Unit conversion (UnitParser)

Compound types (UnitParser)

Timezones (DateParser)

Currently active:

Domain ranking

Project 10 is expected to be the last formal project of varocarbas.com. I will continue using this site as my main self-promotional R&D-focused online resource, but by relying on other more adequate formats like domain ranking.
Note that the last versions of all the successfully completed projects (5 to 10) will always be available.
Completed (24 days)
Completed (57 days)
Completed (26 days)
Completed (47 days)
Completed (19 days)
Completed (14 days)

Introduction >

DateParser Code (.NET/C#) >

Time zones

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:
  • TimeZones which allows to deal with various time zones of different types at the same time.
  • Offset which provides a user-friendly format to deal with UTF offsets. Note that valid offset values are required to instantiate this class.
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.