Leap yearsĪ leap year is any year which is divisible by 400 or the year is divisible by 4 but not by 100. (1 B.C.) or earlier.Ī year is normally 365 days long, except during leap years. are not supported, so HTML doesn't support years 1 B.C.E. Make sure any older dates account for this.įor the purposes of HTML dates, years are always at least four digits long years prior to the year 1000 are padded with leading zeroes (" 0"), so the year 72 is written as 0072. While the Gregorian calendar wasn't created until the year 1582 (replacing the similar Julian calendar), for HTML's purposes, the Gregorian calendar is extended back to the year 1 C.E. While user interfaces may allow entry of dates using other calendars, the underlying value always uses the Gregorian calendar. In order to simplify the basic format used for date strings in HTML, the specification requires that all years be given using the modern (or proleptic) Gregorian calendar.
0 Comments
Leave a Reply. |