askvity

How to Find a Century Code

Published in Calendar & Law 2 mins read

A "century code" can refer to different things depending on the context. Let's clarify and address the most likely interpretations.

1. Century Code in Calendar Calculations

This refers to a numerical value used in calculating the day of the week for a given date. The formula provided is: (1 + (2 (3 (C % 4)))) % 7, where 'C' represents the first two digits of the century (e.g., for the 20th century, C = 20). This formula calculates the century code for January 1st of that century.

  • Example: For the 20th century (C = 20):
    • (1 + (2 (3 (20 % 4)))) % 7 = (1 + (2 (3 0))) % 7 = 1
    • Therefore, the century code for January 1st, 1900 is 1.

The reference also mentions that year codes are needed for finding the day of the week for any year within a century. A complete calculation requires the century code, year code, month code, day of the month, and leap year adjustments.

2. North Dakota Century Code

This refers to the official compilation of North Dakota state laws. It's not a numerical code but a legal document. Accessing it involves using online resources like:

Therefore, finding the North Dakota Century Code requires using online legal databases or the official state website, not a specific numerical calculation.

Related Articles