Ad
  • Custom User Avatar

    Input range in random tests is 1-4000, but month, week and day of week are calendar concepts, Gregorian calendar starts from late 1582, and the tests does not use the proper calendar functions in PHP for its calculation (date is a timestamp function; at best you can only say it's Julian Day). So whatever calculated is wrong/invalid in some of the input range.