Architecture
°ÇÃà Architecture


ÇöÀç À§Ä¡

  1. Home
  2. ±âŸ Etc
  3. ±âŸ Etc

Day calculation (Zeller¡Çs congruence)

ÀÛ¼ºÀÚ Uploader : ¿ì°øÀÌ»ê ÀÛ¼ºÀÏ Upload Date: 2019-01-30º¯°æÀÏ Update Date: 2019-01-31Á¶È¸¼ö View : 307

This is the day-count calculation method that Zeller deceloped.

W = [C/4]+Y+[Y/4]-2*C+[13*(M+1)/5]+D mod 7
where,
[x]: Gaussian function, maximum integer not to exceed x ¡æ It can be expressed as int (x).
mod n: rest divided by n ¡æ It can be expressed as x - int(x/n)*n can be expressed.
C: Number of the first two digits of the year, ex) 2018 ¡æ 20
Y: last two digits of the year, ex) 2018 ¡æ 18
M: March, March = 3, April = 4 ... December = 12, January = 13, February = 14 (enter the previous year in Y in case of January and February)
D: Date

The calculation result is expressed as follows.

0: Saturday
1: Sunday
2: Monday
3: Tuesday
4: Wednesday
5: Thursday
6: Friday

*** Âü°í¹®Çå[References] ***

https://en.wikipedia.org/wiki/Zeller%27s_congruence
W = (int(C/4)+Y+int(Y/4)-2*C+int(13*(M+1)/5)+D)-int((int(C/4)+Y+int(Y/4)-2*C+int(13*(M+1)/5)+D)/7)*7
ÀÛ¼ºÀÚÀÇ ¼ö½Ä±×¸²ÀÌ ¾ø½À´Ï´Ù. No picture for this formula
º¯¼ö¸í Variable º¯¼ö°ª Value º¯ ¼ö ¼³ ¸í Description of the variable


¡Ø ÀÌ »çÀÌÆ®´Â ±¤°í¼öÀÍÀ¸·Î ¿î¿µµË´Ï´Ù.

¡Ú ·Î±×ÀÎ ÈÄ ¼ö½ÄÀÛ¼º ¹× Áñ°Üã±â¿¡ Ãß°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¡Ú To make new formula or to add this formula in your bookmark, log on please.


ÄÚ¸àÆ®

´ñ±Û ÀÔ·Â