timex v2.0.0 Timex.Parse.Timezones.Posix
Parses POSIX-style timezones:
Format
POSIX-style timezones are of the format: local_timezone,date/time,date/time
Where date is in the Mm.n.d format, and where:
Mm(1-12) for 12 monthsn(1-5) 1 for the first week and 5 for the last week in the monthd(0-6) 0 for Sunday and 6 for Saturday
Example
TZ = CST6CDT,M3.2.0/2:00:00,M11.1.0/2:00:00
This would represents a change to daylight saving time at 2:00 AM on the second Sunday in March and change back at 2:00 AM on the first Sunday in November, and keep 6 hours time offset from GMT every year. The breakdown of the string is:
CST6CDTis the timezone nameCSTis the standard abbreviation6is the hours of time difference from GMTCDTis the DST abbreviation,M3is the third month.2is the second occurrence of the day in the month.0is Sunday/2:00:00is the time,M11is the eleventh month.1is the first occurrence of the day in the month.0is Sunday/2:00:00is the time