Skip to content

Instantly share code, notes, and snippets.

@nogweii
Created December 24, 2008 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nogweii/39815 to your computer and use it in GitHub Desktop.
Save nogweii/39815 to your computer and use it in GitHub Desktop.
typedef struct date date;
static struct djswitch {
const char *cc; /* Country code according to ISO 3166 */
const char *nm; /* Name of country */
date dt; /* Last day of Julian calendar */
} switches[] = {
{"AL", "Albania", {1912, 11, 30}},
{"AT", "Austria", {1583, 10, 5}},
{"AU", "Australia", {1752, 9, 2}},
{"BE", "Belgium", {1582, 12, 14}},
{"BG", "Bulgaria", {1916, 3, 18}},
.....
};
struct djswitch *dftswitch =
switches + sizeof(switches) / sizeof(struct djswitch) - 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment