Ne znam da li postoji razlog sto si u inicijalnom post-u koristio Julian kalendar, ali ako radis sa tim kalendarom, DateTime.DaysInMonth ti nece raditi dobro:
Code:
JulianCalendar cal = new JulianCalendar();
int febJul = cal.GetDaysInMonth(2100, 2);
int febDef = DateTime.DaysInMonth(2100, 2);
febJul ce biti 29, a febDef ce biti 28 jer je default kalendar gregorijanski. Julijanski kalendar ima prestupnu godinu svake 4 godine bez izuzetaka, gregorijanski ima svake 4 godine, ali nije prestupna ona godina koja je deljiva sa 100 i nije deljiva sa 400 (1900, 2100, 2200, 2300, 2500, itd). Tako tri put u 400 godina julijanski bezi za po dan.
▪ The word 'politics' is derived from the word 'poly', meaning 'many', and the word 'ticks', meaning 'blood sucking parasites' - Larry Hardiman
▪ If the good guy gets the girl, it's rated PG; if the bad guy gets the girl, it's rated R; and if everybody gets the girl, it's rated X
▪ Illegal aliens have always been a problem in the United States. Ask any Native American