·Î±×ÀÎ
|
ȸ¿ø°¡ÀÔ
|
ȸ»ç¼Ò°³
|
»çÀÌÆ®¸Ê
Ä¿¹Â´ÏƼ | ¼ö½ÄÀÛ¼º Q&A
ÀÛ¼ºÀÚ :
¾Ë¸®¹Ù¹Ù
ÀÛ¼ºÀÏ : 2024-10-02 ¿ÀÈÄ 2:17:23 Á¶È¸¼ö : 21
¼ö½ÄºÎŹµå¸³´Ï´Ù.
¼ö°í°¡ ¸¹À¸½Ê´Ï´Ù.
Å°¿ò¿¡¼ »ç¿ëÇÏ´Â ¿äÀÏÇÔ¼öÀÔ´Ï´Ù. ÀÌ°ÍÀ» ¿¹½º¼ö½Ä »ç¿ëÀÚÇÔ¼ö·Î º¯È¯ÇØÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.
ÇÔ¼ö¸í: ¿äÀÏ(D)
M= floor(D/100)%100;
YY=if((M+1-1) == 1 or (M+1-1) == 2, floor(D/10000)-1, floor(D/10000));
YA=floor(YY/100);
YB=YY%100;
MM=if((M+1-1) == 1, 13, if((M+1-1) == 2, 14, M));
DD= D%100;
A=(DD + floor(13*(MM+1)/5) + YB + floor(YB/4) + floor(YA/4) + YA*5)%7;
if(A==0, 6, A-1)
ÇÕ¼ºÀü·« ¹®ÀÇ
¸Åµµ½ÅÈ£´Â ³ª¿À³ª ¼ö·®ÀÌ 0À¸·Î ³ª¿É´Ï´Ù
°ü·Ã ±Û ¸®½ºÆ®
ÇöÀç±Û
¼ö½ÄºÎŹµå¸³´Ï´Ù.
¾Ë¸®¹Ù¹Ù
2024.10.02
21
Re : ¼ö½ÄºÎŹµå¸³´Ï´Ù.
¿¹½º½ºÅ¹
2024.10.02
16