Library for time zone conversions and automatic DST adjustments

Is there a way to use one rule that may be changed within the program? I've tried, but can't seem to find a solution. Thanks in advance for help on this.