Aquí hay alguna información para crear su propia biblioteca o rutina
Constantes:
DAY_OF_MONTH
the day of the month
e.g. if input mm-dd-yyy then dd
meses:
march = 1
april = 2
may = 3
...
años
yy[yy] (last to digits from yyyy)
*subtract 1 if month jan or feb
e.g. if input date is 02-01-2012 (mm-dd-yyyy)
year = (12-1) = 11
siglo
[yy]yy (first two digits from yyyy)
e.g. if input year is 2012 then 20 = century
* year 2000, 1900, ... are 20-1, 19-1 respectively
ALGORITMO
step1: floor(century/4)
step2: year
step3: floor(year/4)
step4: floor(month*2.6 -0.2) #this is the leap year correction
step5: day_of_month
step6: add step1...step5
step7: divide by 7 # modulo 7 in codespeak
step8: the remainder is the day of the week
interpretar los resultados:
Sun = 0, Mon = 1, Tues = 3, etc..
No
una biblioteca, pero como el tintineo de servicio púbico va ...
"Leer: cuanto más se sabe"
Ref: http://bit.ly/PqF0M0
Muchas gracias, muchachos! – Ikuyasu