Timezone
Timezone copied to clipboard
Master
Allow inline declaration of TimeChangeRule. Saves 24 bytes RAM, does not affect current code. Instead of this: TimeChangeRule PDT = {"PDT", Second, Sun, Mar, 2, -7 * 60}; TimeChangeRule PST = {"PST", First, Sun, Nov, 2, -8 * 60};
Timezone tz(PDT, PST);
you can now also: Timezone tz(TimeChangeRule("PDT", Second, Sun, Mar, 2, -7 * 60), TimeChangeRule("PST", First, Sun, Nov, 2, -8 * 60));
Sorry about check-in, revert, check-in. Still learning Git.