|
| ̤²ò·è |
| ²ò·è |
| Ää»ß |
| ºï½üÍ×ÀÁ |
|
2018/5/12(Sat) 14:53:29|NO.84326
¼«Ê¬¡¢Á°²ó¤Î¥³¥ó¥Æ¥¹¥È¤ÇTOOL½¸¤òÅê¹Æ¤·¤Æ
²¿¸Ä¤«»þ¹ï´ÉÍý¤ÎTOOL¤òºîÀ®¤·¤¿¤ó¤Ç¤¹¤±¤É
¤è¤¯¤ï¤«¤Ã¤Æ¤Ê¤¤¤Þ¤Þ¤Î¤ä¤Ã¤Ä¤±¤Ç
ºÇ¶áÊÌ¥¹¥ì¥Ã¥É¤òÆɤó¤Ç¤Æ
http://hsp.tv/play/pforum.php?mode=all&num=84288
´ØÏ¢¥¹¥ì¥Ã¥É¤Ç¤¹
¥¹¥ì¤Î¤Ã¤È¤ê¤Ë¤Ê¤Ã¤Á¤ã¤¦¤ó¤Ç¡¡ÊÌ¥¹¥ì¥Ã¥É¤òΩ¤Æ¤Æ¤ß¤Þ¤·¤¿
|
|
2018/5/12(Sat) 14:58:25|NO.84327
¼ÁÌä¡
º£Æü¤«ÌÀÆü¤Î»ØÄê»þ¹ï¤Ë¤Ê¤Ã¤¿¤é¡¡¸ú²Ì²»¤òÌĤ餹TOOL¤òºîÀ®¤·¤¿¤ó¤Ç¤¹¤±¤É
ÌÀÆü¤Ë¤Ê¤Ã¤¿È½Äê¤Î»ÅÊý¤¬¤ï¤«¤é¤Ê¤¯¤Æ
ÌÀÆü¤ò»ØÄꤹ¤ë¤È¤¤¤Ä¤Þ¤Ç¤¿¤Ã¤Æ¤â»ØÄê»þ¹ï¤Ë¤Ê¤ó¤Ê¤¤¤Þ¤ó¤Þ¡¡Åê¹Æ¤·¤Þ¤·¤¿
ÌÀÆü¤ÎÆÃÄê¤Î»þ¹ï¤Ë¤Ê¤Ã¤¿¤é¤Ã¤Æ¡¡¤É¤¦¤ä¤Ã¤ÆȽÄꤹ¤ë¤ó¤Ç¤¹¤«¡©
TOOL¤Ï¥½¡¼¥¹¥³¡¼¥É¤Ä¤¤ÇÇÛÉÛ¤ò¹Í¤¨¤Æ¤¤¤ë¤Î¤Ç
ºÆÇÛÉ۲ĤΥ½¡¼¥¹¥³¡¼¥É¤Ç¤ª´ê¤¤¤·¤Þ¤¹
º£¡¢¹Í¤¨¤¿¤é¡¡¡Öº£Æü¡×¥Ü¥¿¥ó¤ò²¡¤·¤¿Æü¤Ë¤Á¤Î¼¡¤ÎÆü¤Ë¤Ê¤Ã¤¿¤é
¸ú²Ì²»¤òÌĤ餷¤Æ¤ß¤è¤¦¤«¤Ê¡£¤È»×¤¦¤ó¤Ç¤¹¤±¤É
¤½¤ì¤Ê¤·¤Î¤Û¤¦¤¬¤¤¤¤¤Á¤ã¤¤¤¤¤Ç¤¹¤Í
TOOL¤òÆ°¤«¤·¤¿¤Þ¤ó¤Þ¡¡¥¹¥ê¡¼¥×¤·¤¿¤ê
»ØÄê¤Î»þ¹ï¤Î»þ¤Ï¡¡¥¹¥ê¡¼¥×¤·¤Æ¤¿¤ê¤â¡¡¹Í¤¨¤é¤ì¤Þ¤¹
|
|
2018/5/12(Sat) 15:00:57|NO.84328
¼ÁÌä¢
ÆÃÄê¤ÎÆüÉդޤDz¿Æü¤«¡©¤ò¶µ¤¨¤Æ¤¯¤ì¤ëTOOL¤ò½ñ¤¤¤¿¤ó¤Ç¤¹¤±¤É
Æü¤Ë¤Á¤ÎÍý²ò¤¬Àõ¤¯¤Æ¡¡º£Ç¯¤«µîǯ¤·¤«»ØÄê¤Ç¤¤Þ¤»¤ó¤Ç¤·¤¿
ÆÃÄê¤Îǯ¤ÎÆÃÄê¤ÎÆü¤Ë¤Á¤Þ¤Ç²¿Æü¤«¿ô¤¨¤ë¤È¤¤¤¦½èÍý¤Ï
¤É¤¦¤Ê¤ë¤ó¤Ç¤·¤ç¤¦¤«
TOOL¤Ï¥½¡¼¥¹¥³¡¼¥É¤Ä¤¤ÇÇÛÉÛ¤ò¹Í¤¨¤Æ¤¤¤ë¤Î¤Ç
ºÆÇÛÉ۲ĤΥ½¡¼¥¹¥³¡¼¥É¤Ç¤ª´ê¤¤¤·¤Þ¤¹
|
|
2018/5/12(Sat) 15:04:37|NO.84329
¼ÁÌä£
Æü¤Ë¤Á¤ÎÁàºî¤¬¤è¤¯¤ï¤«¤Ã¤Æ¤Ê¤¯¤Æ
»ØÄê¤ÎÍËÆü¤Î»ØÄê¤Î»þ¹ï¤Ë¤Ê¤Ã¤¿¤é¡¡¸ú²Ì²»¤òÌĤ餹TOOL¤òºîÀ®¤·¤è¤¦¤È¤·¤Æ
·ë¶É¤¢¤¤é¤á¤¿¤ó¤Ç¤¹¤±¤É
»ØÄê¤ÎÍËÆü¤Î»ØÄê¤Î»þ¹ï¤Ë¤Ê¤Ã¤¿¤é¡¡¸ú²Ì²»¤òÌĤ餹½èÍý¤Ã¤Æ¤É¤¦¤ä¤ë¤ó¤Ç¤¹¤«¡©
Î㤨¤Ðº£Æü¤òÅÚÍËÆü¤È¤·¤Æ¶âÍËÆü¤ÏºòÆü¤Ê¤Î¤«Íè½µ¤Ê¤Î¤«
¤è¤¯¤ï¤«¤Ã¤Æ¤Ê¤«¤Ã¤¿¤ê
¤³¤³¤â¥Ü¥¿¥ó¤ò²¡¤·¤¿Æü¤«¤é¸å¤ÎÍËÆü¤Ã¤Æ¤³¤È¤Ë¤·¤¿¤Û¤¦¤¬³Ú¤«¤â
TOOL¤Ï¥½¡¼¥¹¥³¡¼¥É¤Ä¤¤ÇÇÛÉÛ¤ò¹Í¤¨¤Æ¤¤¤ë¤Î¤Ç
ºÆÇÛÉ۲ĤΥ½¡¼¥¹¥³¡¼¥É¤Ç¤ª´ê¤¤¤·¤Þ¤¹
|
|
2018/5/12(Sat) 15:28:12|NO.84330
°ìÈÌÍý²ò¤Ë´ð¤Å¤¯²óÅú¤È¤·¤Æ¤Ï¤³¤¦¤«¤Ê¡£
1.¡¡¼¡¤Î»ØÄê»þ¹ï¤Ë¤Ê¤Ã¤¿¤éÌĤ롣¤Ê¤Ã¤¿¤¢¤È¤Ë»ß¤á¤ë¡Ê¥ï¥ó¥¿¥¤¥à¥¢¥é¡¼¥à·¿¡Ë
¡¡¤Ä¤Þ¤ê¡¢¥Ç¥¸¥¿¥ë»þ·×¤Îɸ½àŪ¤Ê¥¢¥é¡¼¥à¤Ç¡¢¤Ê¤Ã¤¿¤é¥¹¥¤¥Ã¥Á¤ò¥ª¥Õ¤Ë¤¹¤ë¤è¤¦¤Ê±¿ÍÑ¡£º£Æü¤«¼¡¤ÎÆü¤«¤Ï¤É¤¦¤Ç¤â¤è¤¯¡¢¡Ö»ØÄê»þ´Ö¤Ë¤Ê¤Ã¤¿¤éÌĤ롢»ß¤á¤¿¤é¥ª¥Õ¤Ë¤¹¤ë¡×¤Î¼ÂÁõ¤ò¤¹¤ì¤ÐÎɤ¤¥¿¥¤¥×
¡¡¤Þ¤¿¡¢¼ÁÌäÆâÍÆÄ̤ê¤Î¥Ñ¥¿¡¼¥ó¤Ç¤¢¤ì¤Ð¡¢¥¢¥é¡¼¥à¤ò¥»¥Ã¥È¤·¤¿»þÅÀ¤Ç¤ÎÍâÆü¤Î¥Ç¡¼¥¿¤â´Þ¤á¤ÆÊݸ¤¹¤ë¡£2018/05/12¤Ë¥»¥Ã¥È¤·¤¿¤«¤é¡¢2018/05/13¤Î»ØÄê»þ´Ö¤Ë¡¡¤È¤¤¤Ã¤¿·Á¤Ç¡£
2.¡¡ÆÃÄê¤ÎÆü¤Ë¤Á¤Þ¤Ç²¿Æü¤«¤Ï¶òľ¤Ë¿ô¤¨¤ì¤ÐÎɤ¤¡£¿Í¤¬¤ä¤ë¤È¤ª¤ê¤Ë·×»»¤µ¤»¤ì¤ÐÎɤ¤¡£
3.¡¡»ØÄê¤ÎÍËÆü¤Ë¤Ê¤Ã¤¿¤éÌĤ롣Ëè½µÌĤë¡ÊÄê´üŪ¥¢¥é¡¼¥à·¿¡Ë
¡¡¥¢¥é¡¼¥à¤ò¥ª¥Õ¤Ë¤·¤¿»þÅÀ¤Ç¡¢¼¡¤Î¥¢¥é¡¼¥à¤Î»þ¹ï¤ò¥»¥Ã¥È¤¹¤ë¥ï¥ó¥¿¥¤¥à¥¢¥é¡¼¥à·¿¤È¤â½ñ¤±¤ë¡£
¡¡ºòÆü¤«Íè½µ¤«¡©¡¡¤½¤ó¤Ê¤³¤È¤Ë°ÕÌ£¤¬¤¢¤ê¤Þ¤·¤¿¤«¡©
¤È¤¤¤¦´¶¤¸¤Î²óÅú¤Ç¤¹¤«¤Í¡£¥½¡¼¥¹¤òµ¯¤³¤¹¤Þ¤Ç¤â¤Ê¤¤½èÍý¤Êµ¤¤¬¤¹¤ë¤Î¤Ç½ñ¤¤¤Æ¤Þ¤»¤ó¤¬¡£
|
|
2018/5/12(Sat) 16:20:03|NO.84332
¥³¥á¥ó¥È¤¢¤ê¤¬¤È¤¦¤´¤¶¤Þ¤¹¢ªVelgail¤µ¤ó
Á°¤Î¥¹¥ì¥Ã¥É¤Î¥¹¥¯¥ê¥×¥È¤¬Æɤá¤Ê¤¯¤Æ
µÕ¤Ëή¤ì¤À¤±¡¡Ä󼨤·¤Æ¤¯¤ì¤¿¡¡¤Î¤âÎɤ«¤Ã¤¿¤Î¤«¤Ê¡©
¼«Ê¬¡¢Ì¤¤À¤Ë¾¿Í¤Î¥¹¥¯¥ê¥×¥È¤¬¤¢¤ó¤Þ¤êÆɤá¤Ê¤¯¤Æ
¤ä¤Ã¤Ñ¥×¥í¥°¥é¥ß¥ó¥°¸þ¤¤¤Æ¤Ê¤¤¤Î¤«¤Ê¡©¤ÈºÇ¶á»×¤¤¤Þ¤¹
¡ä2018/05/12¤Ë¥»¥Ã¥È¤·¤¿¤«¤é¡¢2018/05/13¤Î»ØÄê»þ´Ö¡¡¤È¤¤¤Ã¤¿·Á¤Ç¡£
¼¡¤ÎÆü¤Ã¤Æ²¿µ¤¤ËÆñ¤·¤¤¤ó¤Ç¤¹¤è¤Í
Íèǯ¤Î»ØÄê¤ÎÆü¤Ë¤Á¤Þ¤Ç²¿Æü¤«¿ô¤¨¤ì¤¿¤«¤é
¤ä¤Ã¤Æ½ÐÍè¤Ê¤¯¤Ï¤Ê¤¤¤Ã¤Á¤ã¤Ê¤¤¤Ç¤¹¤¬
¡ä3.¡¡»ØÄê¤ÎÍËÆü¤Ë¤Ê¤Ã¤¿¤éÌĤ롣Ëè½µÌĤë¡ÊÄê´üŪ¥¢¥é¡¼¥à·¿¡Ë
¡ä¡¡¥¢¥é¡¼¥à¤ò¥ª¥Õ¤Ë¤·¤¿»þÅÀ¤Ç¡¢¼¡¤Î¥¢¥é¡¼¥à¤Î»þ¹ï¤ò¥»¥Ã¥È¤¹¤ë¥ï¥ó¥¿¥¤¥à¥¢¥é¡¼¥à·¿¤È¤â½ñ¤±¤ë¡£
¡ä¡¡ºòÆü¤«Íè½µ¤«¡©¡¡¤½¤ó¤Ê¤³¤È¤Ë°ÕÌ£¤¬¤¢¤ê¤Þ¤·¤¿¤«¡©
¤½¤¦¸À¤¨¤Ð¡¡º£Æü/ÌÀÆü¡¡¤Ï
»ØÄê»þ¹ï¤Þ¤Ç¤Î»þ´Ö¤òɽ¼¨¤·¤Æ¤Þ¤·¤¿
½µ¡¡¤â»Ä¤ê²¿Æü¤«²¿»þ´Ö¤«É½¼¨¤·¤¿¤¤¤È»×¤¤¤Þ¤¹
¤¿¤Ö¤ó¥¢¥ì¤Ç¤¹¤Í¡¡TOOL¤È¤·¤Æ¹Í¤¨¤ë¤Î¤Ç¤Ï¤Ê¤¯
¥â¥¸¥å¡¼¥ë¤ò½ñ¤¤¤Æʬ³ä¤·¤¿¤Û¤¦¤¬¤¤¤¤¤Î¤«¤Ê¡©
¤´¤Ã¤Á¤ã¤Ë¤Ê¤ë¤Î¤Ç
|
|
2018/5/12(Sat) 17:27:30|NO.84333
Á°¥¹¥ì¤Î»ä¤Î¥½¡¼¥¹¤Ë¾¯¡¹¼ê¤ò²Ã¤¨¤ì¤ÐÂçÂΤǤ¤Þ¤¹¡£
¤·¤«¤·¡¢¤É¤¦¤â¾ïÃ󷿤Υ¢¥×¥ê¤Ã¤Ý¤¤¤Î¤Ç¤¹¤¬dish¤Ç¤Î¤½¤ÎÊýË¡¤Ï¤ï¤«¤ê¤Þ¤»¤ó¡£
Á°¥½¡¼¥¹¤Î¹Í¤¨Êý¤Ï
³«»ÏÆü»þ¡¡¢¤¢£¢£¢£¢£¢£¡û
·×¬Æü»þ¡¡¢¤¢£¢£¢£¢£¢£¡û¢£¢£¢£¢£¢£¢¦¢£¢£¢£¢£¢¢
¢¤¡á³«»Ïǯ¤Î1·î1Æü
¡û¡á³«»Ïǯ·îÆü
¢¦¡á·×¬ǯ¤Î1·î1Æü
¢¢¡á·×¬ǯ·îÆü
³«»Ïǯ·îÆü¤«¤é·×¬ǯ·îÆü¤Þ¤Ç¤ÎÆü¿ô¤ò¿ô¤¨¤ë¤Ë¤Ï
¡û¤«¤é¢¢¤Þ¤Ç¤ÎÆü¿ô¤¬¤ï¤«¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«¤é
¢¤¡Á¡û¤ÎÆü¿ô¡Ê³«»Ïǯ·îÆü¤¬¤½¤Îǯ¤Î²¿ÆüÌܤ«¡Ë¡Ä¡Ä¡
¢¤¡Á¢¦¤ÎÆü¿ô¡Ê¤À¤¤¤¿¤¤365Æü¡¢¤¦¤ë¤¦Ç¯¤Ï366Æü¡Ë¡Ä¡Ä¢
¢¦¡Á¢¢¤ÎÆü¿ô¡Ê·×¬ǯ·îÆü¤¬¤½¤Îǯ¤Î²¿ÆüÌܤ«¡Ë¡Ä¡Ä£
¢¡Ü£¡Ý¡¤ò·×»»¤¹¤ì¤Ð
³«»Ïǯ·îÆü¤«¤é·×¬ǯ·îÆü¤Þ¤Ç¤ÎÆü¿ô¤Ë¤Ê¤ë¤³¤È¤¬¤ï¤«¤ë¤È»×¤¤¤Þ¤¹¡£
¤³¤Î¡¢£¤Ï¥½¡¼¥¹¤Î¥³¥á¥ó¥È¤Ë½ñ¤¤¤¿Èֹ椽¤Î¤Þ¤Þ¤Ç¤¹¡£
¤½¤·¤Æ¤³¤ì¤¬¼ÁÌ䢤ÎÅú¤¨¤½¤Î¤â¤Î¤Ç¤¹¡£
»þ´Ö¤Ë´Ø¤·¤Æ¤â¹Í¤¨Êý¤ÏƱ¤¸¤Ç
³«»ÏÆü»þ¡¡¢¤¢£¢£¢£¢£¢£¡û
·×¬Æü»þ¡¡¢¤¢£¢£¢£¢£¢£¡û¢£¢£¢£¢£¢£¢¦¢£¢£¢£¢£¢¢
¢¤¡á³«»ÏÆü¤Î0»þ0ʬ0ÉÃ
¡û¡á³«»Ï»þ¹ï
¢¦¡á·×¬Æü¤Î0»þ0ʬ0ÉÃ
¢¢¡á·×¬»þ¹ï
¢¤¡Á¡û¡¡³«»Ï¤·¤¿»þʬÉäϳ«»ÏÆü0»þ0ʬ0É䫤鲿Éøå¤Ê¤Î¤«¡Ä¡Ä¤
¢¤¡Á¢¦¡¡·×¬Æü¤Î0»þ0ʬ0Éᡤϡ¡³«»ÏÆü¤Î0»þ0ʬ0É䫤鲿¡ØÉáٸå¤Ê¤Î¤«¡Ä¡Ä¥
¢¦¡Á¢¢¡¡·×¬¤·¤¿»þʬÉäϷ׬Æü0»þ0ʬ0É䫤鲿Éøå¤Ê¤Î¤«¡Ä¡Ä¦
¥¡Ü¦¡½¤¤ò·×»»¤¹¤ì¤Ð
³«»ÏÆü»þ¤«¤é·×¬Æü»þ¤Þ¤Ç¤ÎÉÿô¤Ë¤Ê¤ê¤Þ¤¹¡£
Æü¿ô·×»»¤âÉÿô·×»»¤â´ð½à¤Ë¤Ê¤ë²Õ½ê¡Ê¿Þ¤Î¢¤¡Ë¤ò0¤È¤·¤Æ
³«»ÏÆü»þ¤Ï0¤«¤é¤É¤ì¤¯¤é¤¤¤Ê¤Î¤«
·×¬Æü»þ¤Ï0¤«¤é¤É¤ì¤¯¤é¤¤¤Ê¤Î¤«
¤È¤¤¤¦Î̤òÌÀ³Î¤Ë¤·¤Æ·×¬Æü»þ¤«¤é³«»ÏÆü»þ¤ò°ú¤¯¤È
³«»ÏÆü»þ¤«¤é·×¬Æü»þ¤Þ¤Ç¤ÎÎÌ¡ÊÆü¿ô¤äÉÿô¡Ë¤òƳ¤½Ð¤¹¤È¤¤¤¦¼êË¡¤Ç»»½Ð¤·¤Æ¤¤¤Þ¤¹¡£
¼ÁÌä¡¡§
»ØÄꤹ¤ë»þ¹ï¤ò H»þ Mʬ SÉà ¤È¤·¤¿¾ì¹ç
// ¥¢¥é¡¼¥à¤Î»þ¹ï¤òÉä˴¹»»
AlarmTime = 3600*H + 60*M + S;
// ¸½ºß¤Î»þ¹ï¤ò¼èÆÀ
NowHour = gettime(4); // »þ
NowMinute = gettime(5); // ʬ
NowSecond = gettime(6); // ÉÃ
// ¸½ºß¤Î»þ¹ï¤òÉä˴¹»»
NowTime = 3600*NowHour + 60*NowMinute + NowSecond;
// ÉÿôÈæ³Ó
if( AlarmTime < NowTime ) {
// ¥¢¥é¡¼¥à¤Î»þ¹ï¤ò¤¹¤®¤Æ¤¤¤ë¾ì¹ç¡¢ÌÀÆü¤Î»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô¤ò»»½Ð
AlarmTime += 86400;
AlarmTime -= NowTime;
}
else {
// ¤Þ¤À¥¢¥é¡¼¥à¤Î»þ¹ï¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢º£Æü¤Î»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô¤ò»»½Ð
AlarmTime -= NowTime;
}
¤¢¤È¤Ï¥ë¡¼¥×ÂÔµ¡¤Ç³«»Ï»þ¹ï¤«¤é¸½ºß»þ¹ï¤Þ¤Ç¤Î·Ð²áÉÿô¤¬
AlarmTime¤È°ìÃפ·¤¿¤é²»¤òÌĤ餹¡¢¤È¤¤¤¦´¶¤¸¤Ç¤¹¡£
¼ÁÌ䢡§
¤³¤ì¤ÏÁ°¥¹¥ì¤Î¥½¡¼¥¹¤ò¤½¤Î¤Þ¤Þ»È¤¨¤Þ¤¹¡£
°Ê²¼Á°¥¹¥ì¤Î¥½¡¼¥¹¤«¤éɬÍײսê¤ÎÈ´¤½Ð¤·
// ³«»ÏÆü»þ¤òµÏ¿
startyear = gettime(0); // ǯ
startmonth = gettime(1); // ·î
startday = gettime(3); // Æü
;¡Á¾Êά¡Á
// ·×¬Æü»þ¤òµÏ¿
checkyear = gettime(0); // ǯ
checkmonth = gettime(1); // ·î
checkday = gettime(3); // Æü
;¡Á¾Êά¡Á
// ¢+£-¡ = ·Ð²áÆü¿ô
passdays = SdayfToCdayf + checkyeardays - startyeardays;
gettime¤Ç¼èÆÀ¤·¤Æ¤¤¤ëǯ·îÆü¤Ë¶ñÂÎŪ¤Ê¿ôÃͤòÆþ¤ì¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
³«»Ïǯ·îÆü¤«¤é·×¬ǯ·îÆü¤Þ¤Ç¤ÎÆü¿ô¤¬passdays¤ËÆþ¤ê¤Þ¤¹¡£
¼ÁÌ䣡§
¤³¤ì¤Ï¼ÁÌ䡤ȤۤȤó¤ÉƱ¤¸¤Ç¤¹¡£
»ØÄꤹ¤ëÍËÆü¤òWeekDay¡¢»þ¹ï¤ò H»þ Mʬ SÉà ¤È¤·¤¿¾ì¹ç
// ¥¢¥é¡¼¥à¤Î»þ¹ï¤òÉä˴¹»»
AlarmTime = 3600*H + 60*M + S;
// ¸½ºß¤ÎÍËÆü¤È»þ¹ï¤ò¼èÆÀ
NowWDay = gettime(2); // ÍËÆü
NowHour = gettime(4); // »þ
NowMinute = gettime(5); // ʬ
NowSecond = gettime(6); // ÉÃ
// ¸½ºß¤Î»þ¹ï¤òÉä˴¹»»
NowTime = 3600*NowHour + 60*NowMinute + NowSecond;
// ÍËÆü¤ÎÈæ³Ó
if( NowWDay == WeekDay ) {
// »ØÄꤷ¤¿ÍËÆü¤Èº£Æü¤ÎÍËÆü¤¬°ìÃפ·¤Æ¤¤¤ë¾ì¹ç
// ÉÿôÈæ³Ó
if( AlarmTime < NowTime ) {
// ¥¢¥é¡¼¥à¤Î»þ¹ï¤ò¤¹¤®¤Æ¤¤¤ë¾ì¹ç¡¢Íè½µ¤Î»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô¤ò»»½Ð
AlarmTime += 86400*7;
AlarmTime -= NowTime;
}
else {
// ¤Þ¤À¥¢¥é¡¼¥à¤Î»þ¹ï¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢º£Æü¤Î»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô¤ò»»½Ð
AlarmTime -= NowTime;
}
}
else:if( NowWDay < WeekDay ) {
// Ʊ¤¸½µ¤Ç¤Þ¤À»ØÄêÍËÆü¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç
d = WeekDay - NowWDay; // »ØÄêÍËÆü¤Þ¤Ç¤ÎÆü¿ô
// »ØÄêÍËÆü¡¦»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô
AlarmTime += 86400*d;
AlarmTime -= NowTime;
}
else {
// »ØÄêÍËÆü¤ò²á¤®¤Æ¤¤¤ë¾ì¹ç
d = 6 - NowWDay + WeekDay; // ¼¡½µ¤Î»ØÄêÍËÆü¤Þ¤Ç¤ÎÆü¿ô
// »ØÄêÍËÆü¡¦»ØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô
AlarmTime += 86400*d;
AlarmTime -= NowTime;
}
¤¢¤È¤Ï¼ÁÌ䡤ÈƱ¤¸¤¯¥ë¡¼¥×ÂÔµ¡¤Ç³«»Ï»þ¹ï¤«¤é¸½ºß»þ¹ï¤Þ¤Ç¤Î·Ð²áÉÿô¤¬
AlarmTime¤È°ìÃפ·¤¿¤é²»¤òÌĤ餷¡¢¼¡¤Î½µ¤Ë¸þ¤±¤Æ¤³¤ì¤ÈƱ¤¸½èÍý¤ò¤·¤Æ
¤Þ¤¿AlarmTime¤ò»»½Ð¤·¥ë¡¼¥×ÂÔµ¡¤¹¤ë¡¢²»¤òÌĤ餷¤¿¤éAlarmTime¤ò»»½Ð¤·¥ë¡¼¥×ÂÔµ¡¤¹¤ë
¤Î·«¤êÊÖ¤·¤Ç¤¹¡£
¤Þ¤¢¡¢¼ÁÌ䡤ȼÁÌ䣤ϻØÄê»þ¹ï¤Þ¤Ç¤ÎÉÿô¤ò¿ô¤¨¤ë¤Î¤Ç¤Ï¤Ê¤¯
¾ïÃó¥¢¥×¥ê¤Ê¤é¥ë¡¼¥×ÂÔµ¡Ãæ¤Ëgettime¤ÇÍËÆü¤ä»þ¹ï¤ò¼èÆÀ¤·¤Æ
»ØÄê»þ¹ï¤È°ìÃפ·¤¿¤é²»¤òÌĤ餹¤Ã¤Æ¤À¤±¤Ç¤â¤¤¤¤µ¤¤¬¤·¤Þ¤¹¤¬¡£
| |
|
2018/5/12(Sat) 17:37:14|NO.84334
°ìÉôÄûÀµ
¸í¡§
¢¤¡Á¢¦¤ÎÆü¿ô¡Ê¤À¤¤¤¿¤¤365Æü¡¢¤¦¤ë¤¦Ç¯¤Ï366Æü¡Ë¡Ä¡Ä¢
Àµ¡§
¢¤¡Á¢¦¤ÎÆü¿ô¡Ê³«»Ïǯ1·î1Æü¤«¤é·×¬ǯ1·î1Æü¤Þ¤Ç¤ÎÆü¿ô¡Ë¡Ä¡Ä¢
¤Ç¤·¤¿¡£
¼ºÎ餷¤Þ¤·¤¿¡£
|
|
2018/5/13(Sun) 00:07:28|NO.84348
²óÅú¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¢ª¤¢¤é¤ä¤µ¤ó
¥Þ¥¤¥Ê¡¼¥¢¥Ã¥×¥Ç¡¼¥È¤Î
¡Ê¿·¤·¤¤TOOL»×¤¤¤Ä¤«¤Ê¤¯¤Æ£÷¡Ë
¥¿¥¤¥Þ¡¼TOOL½¸¤È¤·¤Æº£Ç¯¤Î¥³¥ó¥Æ¥¹¥È¤Ë½ÐÉʤ·¤è¤¦¤«¤Ê¤Ã¤Æ¤È¤³¤Ç¤¹
¡ä¤·¤«¤·¡¢¤É¤¦¤â¾ïÃ󷿤Υ¢¥×¥ê¤Ã¤Ý¤¤¤Î¤Ç¤¹¤¬dish¤Ç¤Î¤½¤ÎÊýË¡¤Ï¤ï¤«¤ê¤Þ¤»¤ó¡£
¾ïÃ󷿤äƤ¤¤¦¤«¡¡¥¢¥×¥êµ¯Æ°¤·¤Ã¤Ñ¤Ê¤·¤Ç¤¹¤Í
¾ïÃ󷿤ˤ·¤Æ²»¤À¤±ÌĤë¤Î¤â¤¤¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤Í
ºî¤êÊý¤ï¤«¤ó¤Ê¤¤¤Ç¤¹¤±¤É¢ª¾ïÃó¥¢¥×¥ê
¼«Ê¬¤Î¾ì¹ç¡¢¼ç¤Ëwin¥¿¥Ö¥ì¥Ã¥È¤Ç»È¤Ã¤Æ¤Þ¤¹¤Î¤Ç
dish¤¸¤ã¤Ê¤¤¤«¤éÂç¾æÉפ½¤¦¤Ç¤¹
|
|
2018/5/14(Mon) 18:54:55|NO.84389
¤³¤ó¤Ð¤ó¤ï
¤È¤ê¤¢¤¨¤º¡¤À¤±¼ÂÁõ½ÐÍ褿¤È¤³¤Ç¤¹
ºÇ½é¤Ë¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤¢¤ê¤Ç¤Ï¤Ê¤¯
ÃæÅÓȾü¤ÊTOOL¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤¹¤ë¤«¤ó¤¸¤Ê¤Î¤Ç
¤Á¤ç¤Ã¤ÈÂçÊѤÀ¤Ã¤¿¤ê
»î¹Ôºø¸í¤·¤Ê¤¬¤é¥µ¥ó¥×¥ëÆɤó¤Ç¤ë¤È¡¡¤¿¤ÀÆɤà¤è¤êÆɤá¤Þ¤¹¤Ê
¤Þ¤ÀÍý²ò½ÐÍè¤Æ¤¤¤Þ¤»¤ó¤¬
¡¤ÏÅÚÍËÆü¤òÆÃÊÌ°·¤¤¤·¤Æʬ´ô¤·¤Æ¤ä¤Ã¤Æ¤Þ¤¹
£¤Ï¤½¤ó¤Ê¤«¤ó¤¸¤Ç¡¡£·Ä̤êʬ´ô¤Ç¤ä¤í¤¦¤«¤Ê¡£¤È
¼«Ê¬¡¢ÌܳФޤ·»þ·×¤È¤«¡¡ÌĤäƵ¯¤¤¿¤é¡¡¥¿¥¤¥Þ¡¼¤Î¥¹¥¤¥Ã¥ÁÀÚ¤ëÇɤʤΤÇ
ÌĤë¤Î¤Ï°ì²ó¤À¤±Åª¤Ê½¤Àµ¤ò¤«¤±¤Æ¤¿¤é¡¡¤Þ¤¿¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤«¤é¤½¤ì¤Æ¤¿¤ê
ÌÀÆü¤Ï²¿Æü¤«¡©¤È¤«¼¡¤Î£ØÍËÆü¤Ï²¿Æü¤«¡©¤È¤«
¤É¤Ã¤«¤Ë¤¢¤ê¤½¤¦¤Ê¤ó¤Ç¤¹¤¬¡£¤Ê¤¤¤Ç¤¹¤«¡©
|
|
2018/5/14(Mon) 23:48:35|NO.84397
>ÌÀÆü¤Ï²¿Æü¤«¡©¤È¤«¼¡¤Î£ØÍËÆü¤Ï²¿Æü¤«¡©¤È¤«
>¤É¤Ã¤«¤Ë¤¢¤ê¤½¤¦¤Ê¤ó¤Ç¤¹¤¬¡£¤Ê¤¤¤Ç¤¹¤«¡©
¡ûÆü¸å¤ÎÆüÉÕ¤ÎÊý¤Ï¤¢¤ê¤½¤¦¤Ç¡¢¼ÂºÝ¥×¥í¥°¥é¥à¼«ÂΤϤ¢¤ë¤ó¤Ç¤¹¤¬
¥½¡¼¥¹¤Ï¤¢¤Þ¤ê̵¤¤¤ß¤¿¤¤¤Ç¤¹¡£
¤¢¤ë¤³¤È¤Ï¤¢¤ë¤ó¤Ç¤¹¤¬¡¢¤¢¤Þ¤ê¾Ü¤·¤¤ÀâÌÀ¤â̵¤«¤Ã¤¿¤Ç¤¹¡£
¼¡¤Î£ØÍËÆü¤Ï²¿Æü¤«¤È¤¤¤¦¤Î¤Ï¡¢¼¡¤Î£ØÍËÆü¤Ï²¿Æü¸å¤«¤òµá¤á¤ì¤Ð
¾åµ¤ÈƱ¤¸¡ûÆü¸å¤ÎÆüÉÕ¤òµá¤á¤ëÊýË¡¤Ç²Äǽ¤Ç¤¹¤Í¡£
£ØÍËÆü¤Ï²¿Æü¸å¤«¤È¤¤¤¦¤Î¤Ï¥µ¥ó¥×¥ë¤òõ¤¹¤Þ¤Ç¤â¤Ê¤¤¤Ç¤¹¡£
¤½¤ó¤Ê¤ï¤±¤Ç¥â¥¸¥å¡¼¥ë²½¤·¤Æ¤ß¤Þ¤·¤¿¡£
GetDate sy, sm, sd, ad, dy, dm, dd // syǯsm·îsdÆü¤ÎadÆü¸å¤ÎÆüÉÕ¤òdy,dm,dd¤ËÊÖ¤¹
GetDayOfWeek(year, month, day) // ÆüÉÕ¤ÎÍËÆü¤ò¼èÆÀ
CountNextDOW(DayOfWeek) // DayOfWeekÍËÆü¤Ï²¿Æü¸å¤«¤òÊÖ¤¹
GetDayOfWeek¤äCountNextDOW¤Ç»È¤¦ÍËÆü¤Ï
gettime¤ÈƱ¤¸¤Ç¡¢0¤¬ÆüÍË¡Á6¤¬ÅÚÍˤǤ¹¡£
#module
#deffunc _init
dim monthdays, 13; // ³Æ·î¤ÎÆü¿ô
monthdays = 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31;
return;
// ¤¦¤ë¤¦Ç¯¤Î³Îǧ¡¡Ìá¤êÃͤ¬£±¤Ê¤é¤¦¤ë¤¦Ç¯
#defcfunc CheckLeap int year
if( (((year\4) == 0) && ((year\100) != 0)) || ((year\400) == 0) ) {
rc = 1;
}
else {
rc = 0;
}
return rc;
// »ØÄê·îÆü¤Ï»ØÄêǯ¤Î1·î1Æü¤«¤é²¿Æü¸å¤«¤òÊÖ¤¹
#defcfunc CountYearDay int year, int month, int day
_init;
leap = CheckLeap(year); // ¤¦¤ë¤¦Ç¯¤Î³Îǧ
rc = 0;
repeat month - 1, 1
rc += monthdays(cnt); // ³Æ·î¤ÎÆü¿ô¤ò¤·¤Æ¤¤¤¯
if( cnt == 2 ) : rc += leap; // 2·î¤Ï¤¦¤ë¤¦Ç¯¤ò¹Íθ
loop
rc += day - 1;
return rc;
// À¾Îñ1ǯ1·î1Æü¤«¤é»ØÄêǯ1·î1Æü¤Þ¤Ç¤Î¤¦¤ë¤¦Ç¯¤Î²ó¿ô¤òÊÖ¤¹
#defcfunc CountLeap int year
return (year - 1)/4 - (year - 1)/100 + (year - 1)/400;
// »ØÄꤷ¤¿ÆüÉդ˻ØÄêÆü¿ô¤ò¤·¤¿ÆüÉÕ¤òÊÖ¤¹
#deffunc GetDate int syear, int smonth, int sday, int pdays, var dyear, var dmonth, var dday
_init;
days = CountYearDay(syear, smonth, sday); // syearǯ1·î1Æü¤«¤ésmonth·îsdayÆü¤Þ¤Ç¤ÎÆü¿ô
days += pdays; // »ØÄêÆü¿ô¤ò¤¹
if( days > 364 ) { // 1·î1Æü¤«¤é¤ÎÆü¿ô¤¬364Æü°Ê¾å¡Ê12·î31Æü°Ê¹ß¡Ë¤Î¾ì¹ç¡¢Ç¯¤¬ÊѤï¤ë
y = days / 365; // ²¿Ç¯¸å¤Ê¤Î¤«¡Ê»ÃÄê¡Ë
passdays = y * 365; // syearǯ1·î1Æü¤«¤é yǯ¸å1·î1Æü¤Þ¤Ç¤ÎÆü¿ô¡Ê³µ»»¡Ë
passdays += CountLeap(syear + y) - CountLeap(syear); // ¤¦¤ë¤¦Ç¯Ê¬¤ò¤·¤ÆÀµ³Î¤ÊÆü¿ô¤ò»»½Ð
if( passdays == days ) { // °ìÃפ¹¤ë¾ì¹ç¤Ï¤Á¤ç¤¦¤Éyǯ¸å¤Î1·î1Æü
dyear = syear + y;
dmonth = 1;
dday = 1;
return;
}
else:if( passdays > days ) { // ¤ê¤Ê¤¤¾ì¹ç¤Ïy-1ǯ¸å
y--;
// Æü¿ô·×»»¤·Ä¾¤·
passdays = y * 365;
passdays += CountLeap(syear + y) - CountLeap(syear);
}
d = days - passdays + 1; // yǯ¸å¤ÎdÆüÌܤˤʤë
}
else {
y = 0; // Ʊǯ
d = days + 1; // Ʊǯ¤ÎdÆüÌÜ
}
m = 0;
leap = CheckLeap(syear + y); // ¤¦¤ë¤¦Ç¯¤Î³Îǧ
repeat 12, 1
d -= monthdays(cnt); // ³Æ·î¤ÎÆü¿ô¤ò°ú¤¤¤Æ²¿·î¤«¤ò³ÎÄꤹ¤ë
if( cnt == 2 ) : d -= leap;
m = cnt;
if( d < 1 ) { // 0°Ê²¼¤Ë¤Ê¤Ã¤¿·î¤¬µá¤á¤ë·î
d += monthdays(cnt);
if( cnt == 2 ) : d += leap;
break;
}
loop
dyear = syear + y;
dmonth = m;
dday = d;
return;
// »ØÄꤷ¤¿ÆüÉÕ¤ÎÍËÆü¤òÊÖ¤¹ 0¤¬ÆüÍË¡¢1¤¬·îÍË¡¥¡¥¡¥6¤¬ÅÚÍË ¡Ê¥Ä¥§¥é¡¼¤Î¸ø¼°¤Ë¾¯¤·¼ê¤ò²Ã¤¨¤¿¤â¤Î¡Ë
#defcfunc GetDayOfWeek int year, int month, int day
p01 = year / 100;
p02 = year \ 100;
rc = day + (month + 1)*26/10 + p02 + p02/4 + p01/4 - p01*2 + 6;
rc \= 7;
return rc
// »ØÄꤷ¤¿ÍËÆü¤¬²¿Æü¸å¤«¤òÊÖ¤¹
#defcfunc CountNextDOW int dow
nowdow = gettime(2); // º£Æü¤ÎÍËÆü
if( nowdow == dow ) {
// º£Æü¤ÎÍËÆü¤È»ØÄꤷ¤¿ÍËÆü¤¬°ìÃפ¹¤ë¾ì¹ç¤Ï7Æü¸å¤òÊÖ¤¹
rc = 7;
}
else:if( nowdow < dow ) {
// Ʊ¤¸½µ¤Ç¤Þ¤À»ØÄêÍËÆü¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç
rc = dow - nowdow; // »ØÄêÍËÆü¤Þ¤Ç¤ÎÆü¿ô
else {
// »ØÄêÍËÆü¤ò²á¤®¤Æ¤¤¤ë¾ì¹ç
rc = 7 - nowdow + dow; // ¼¡½µ¤Î»ØÄêÍËÆü¤Þ¤Ç¤ÎÆü¿ô
}
return rc;
#global
// ÆüÉÕ+¡ûÆü¿ô¸å¤Îǯ·îÆü
year = 2018; // ǯ
month = 5; // ·î
day = 15; // Æü
GetDate year, month, day, 20, y, m, d;
mes strf("%dǯ%02d·î%02dÆü¤Î20Æü¸å¤Ï¡¢%dǯ%02d·î%02dÆü¤Ç¤¹¡£", year, month, day, y, m, d );
// »ØÄꤷ¤¿ÆüÉÕ¤ÎÍËÆü¤ò¼èÆÀ
dow = GetDayOfWeek(year, month, day);
if( dow == 0 ) {
strdow = "ÆüÍËÆü";
}
else:if( dow == 1 ) {
strdow = "·îÍËÆü";
}
else:if( dow == 2 ) {
strdow = "²ÐÍËÆü";
}
else:if( dow == 3 ) {
strdow = "¿åÍËÆü";
}
else:if( dow == 4 ) {
strdow = "ÌÚÍËÆü";
}
else:if( dow == 5 ) {
strdow = "¶âÍËÆü";
}
else:if( dow == 6 ) {
strdow = "ÅÚÍËÆü";
}
mes strf("\n%dǯ%02d·î%02dÆü¤Ï¡¢%s¤Ç¤¹¡£", year, month, day, strdow );
// »ØÄꤷ¤¿ÍËÆü¤Ï²¿Æü¸å¤«¤ò¼èÆÀ
mes "\n¼¡¤ÎÆüÍËÆü¤Þ¤Ç¤¢¤È"+CountNextDOW(5)+"Æü¤Ç¤¹¡£";
| |
|
2018/5/15(Tue) 23:27:06|NO.84420
¤¢¤¢¡¢ºÇ¸å¤Î¹Ô¥ß¥¹¤·¤Æ¤Þ¤·¤¿¡£
¸í¡§¡¡mes "\n¼¡¤ÎÆüÍËÆü¤Þ¤Ç¤¢¤È"+CountNextDOW(5)+"Æü¤Ç¤¹¡£";
Àµ¡§¡¡mes "\n¼¡¤ÎÆüÍËÆü¤Þ¤Ç¤¢¤È"+CountNextDOW(0)+"Æü¤Ç¤¹¡£";
ºÇ½é¤Ë¶âÍˤdzÎǧ¤·¤Æ¤¿¤Î¤ò˺¤ì¤Æʸ»ú¤À¤±ÆüÍˤˤ·¤Æ´Î¿´¤Î¿ôÃͤòÊѤ¨¤Æ¤Ê¤«¤Ã¤¿¡£¡£¡£
¤Ä¤¤¤Ç¤ËGetDate¤ÎÊý¤Ë¤â¥ß¥¹¤¬¤¢¤ê¤Þ¤·¤¿¡£
¤Û¤«¤Ë¤â¤¤¤¯¤Ä¤«¡Ä¡Ä¡£
½¤Àµ¤·¤Æ¤â¤¤¤¤¤Ç¤¹¤¬¡¢GENKI¤µ¤ó¤Î¥â¥¸¥å¡¼¥ë¤ò¤ª´«¤á¤·¤Þ¤¹¡£
|
|
2018/5/16(Wed) 17:43:35|NO.84424
¡ä¤¢¤é¤ä¤µ¤ó¡£GENKI¤µ¤ó
ÊÖÅú¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹
»þ¹ï¤Î½èÍý¤Ï¥Ç¥Ð¥Ã¥°¤·¤º¤é¤¯¤ÆÂçÊѤǤ¹¤è¤Í
¤È¤ê¤¢¤¨¤º
¤¢¤é¤ä¤µ¤ó¤Î¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤ÎÍý²ò½ÐÍè¤ëÈϰϤÈ
GENKI¤µ¤ó¤Î¥â¥¸¥å¡¼¥ë¤ò
ÁȤ߹ç¤ï¤»¤Æ¤ä¤í¤¦¤È»×¤Ã¤Æ¤¤¤Þ¤¹
¤ä¤í¤¦¤È¤¹¤ë¤³¤È¤ò¥Í¥Ã¥È¤Ë½ñ¤¯¤È¤ä¤é¤Ê¤¤¡£¤Îˡ§¤¬¤¢¤ë¤Î¤Ç
¥³¡¼¥É½ñ¤¤¤Æ¤«¤é¡¡¥³¥á¥ó¥È¤¹¤ë¤È¤¤¤¦¤Î¤ò
¤ä¤ì¤Æ¤Ê¤¤¤Ç¤¹¤±¤É¤³¤³¤í¤¬¤±¤Æ¤Þ¤¹
½ª¤ï¤Ã¤¿¤é¤¢¤ó¤Þ¤ê½ñ¤¯¤³¤È¤â¤Ê¤¯¤Ê¤Ã¤Á¤ã¤Ã¤¿¤ê¤¹¤ë¤ó¤Ç¤¹¤¬
|
|
2018/5/20(Sun) 18:50:43|NO.84460
¤³¤ó¤Ð¤ó¤ï¡£ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿
£°ì±þ¼ÂÁõ½ÐÍè¤Þ¤·¤¿
¤è¤¯¤ï¤«¤ó¤Ê¤¤¥¨¥é¡¼¤â¤Á¤é¤Û¤é£÷
¼«Ê¬¡¢¼ÂÁõÃÙ¤¹¤®¤Þ¤¹¤è¤Í
º£Æü¤ä¤ëµ¤¤Ë¤Ê¤Ã¤Æº£Æü½ª¤ï¤Ã¤¿Åª¤Ê
ÁÇÁ᤯ŬÀڤ˥³¡¼¥Ç¥£¥ó¥°½ÐÍè¤ë
VelgailÍÍ¡£¤¢¤é¤äÍÍ¡£GENKIÍͤ¬¤¦¤é¤ä¤Þ¤·¤¤¤Ç¤¹¤Í
|
|
2018/5/20(Sun) 19:58:39|NO.84462
¼ÂÁõ¤ª¤á¤Ç¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
»ä»ö¤Ç¤Ï¤¢¤ë¤ó¤Ç¤¹¤¬¡¢
¥ß¥¹¤·¤¿¤Þ¤Þ¤Î¥½¡¼¥¹¤À¤±¤ò»Ä¤·¤Æ¤ª¤¯¤Î¤â¤Ê¤ó¤«·ù¤À¤Ã¤¿¤Î¤Ç
½¤Àµ¤·¤Æ¡¢Â¿¾¯µ¡Ç½Äɲä·¤¿¥â¥¸¥å¡¼¥ë¤ò¾è¤»¤µ¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹¡£
// »²¹ÍURL
// http://ufcpp.net/study/algorithm/o_days.html
// http://www5e.biglobe.ne.jp/~emm386/2016/zeller/jd01.html
#module
// ¤¦¤ë¤¦Ç¯¤Î³Îǧ¡¡Ìá¤êÃͤ¬£±¤Ê¤é¤¦¤ë¤¦Ç¯
#defcfunc CheckLeap int year
if( (((year\4) == 0) && ((year\100) != 0)) || ((year\400) == 0) ) {
rc = 1;
}
else {
rc = 0;
}
return rc;
// »ØÄêǯ1·î1Æü¤«¤é»ØÄê·îÆü¤Þ¤Ç²¿Æü¸å¤«¤òÊÖ¤¹
#defcfunc CountYearDay int year, int month, int day
y = year;
m = month;
if( m < 3 ) {
// 1·î¡¢2·î¤ÏÁ°Ç¯¤Î13·î¡¢14·î¤È¹Í¤¨¤ë
y--;
m += 12;
}
cyd01 = (m * 979 - 1033) >> 5; // ·î¤ÎÆü¿ô¤Î¹ç·×ÃÍ
leap1 = CheckLeap(y); // ¤¦¤ë¤¦Ç¯¤Î³Îǧ
rc = cyd01 + leap1 + day - 1;
if( m > 12 ) {
rc -= 365 + leap1;
}
return rc;
// À¾Îñ1ǯ1·î1Æü¤«¤é»ØÄêǯ1·î1Æü¤Þ¤Ç¤Î¤¦¤ë¤¦Ç¯¤Î²ó¿ô¤òÊÖ¤¹
#defcfunc CountLeap int year
cl01 = year / 100;
return (year >> 2) - cl01 + (cl01 >> 2);
; ¥Ó¥Ã¥È±é»» (year - 1)/4 - (year - 1)/100 + (year - 1)/400; ¤È¤Û¤ÜƱ¤¸°ÕÌ£
// À¾Îñ1ǯ1·î1Æü¤«¤é»ØÄêǯ·îÆü¤Þ¤Ç¤ÎÆü¿ô¤òÊÖ¤¹
#defcfunc CountDate int year, int month, int day
y = year;
m = month;
if( m < 3 ) {
// 1·î¡¢2·î¤ÏÁ°Ç¯¤Î13·î¡¢14·î¤È¹Í¤¨¤ë
y--;
m += 12;
}
cd01 = (y - 1) * 365; // ǯ¿ô*365Æü
cd02 = CountLeap(y); // ¤¦¤ë¤¦Ç¯¤Î²ó¿ô
cd03 = (m * 979 - 1033) >> 5; // ·î¤ÎÆü¿ô¤Î¹ç·×ÃÍ
return (cd01 + cd02 + cd03 + day - 1);
// ʬ»Ò¤¬¥Þ¥¤¥Ê¥¹Ãͤξì¹ç¤ò´Þ¤à½ü»»¤Î¾¦¤òÊÖ¤¹
#defcfunc Div int nume, int deno
rc = nume / deno;
if( (nume < 0) && ((nume\deno) != 0) ) {
rc--;
}
return rc;
// ʬ»Ò¤¬¥Þ¥¤¥Ê¥¹Ãͤξì¹ç¤ò´Þ¤à½ü»»¤Î¾ê;¤òÊÖ¤¹
#defcfunc Mod int mnume, int mdeno
modrc = mnume - Div( mnume, mdeno ) * mdeno;
return modrc;
// CountDays¤Î¥µ¥Ö¥ë¡¼¥Á¥ó
#defcfunc _Sub_CountDays int year, int month, int day
sub_y = year: sub_m = month;
if( sub_m < 3 ): sub_y--: sub_m +=12; // 1·î¤È2·î¤ÏÁ°Ç¯¤Î13·î¡¢14·î¤È¤·¤Æ°·¤¦
days = (sub_y - 1) * 365; // ·Ð²áǯ¿ô*365Æü
days += CountLeap(sub_y); // ¤¦¤ë¤¦Ç¯Ê¬¤ò²Ã»»
days += (sub_m * 979 - 1033) >> 5; // 1·î1Æü¤«¤é month·î1Æü¤Þ¤Ç¤ÎÆü¿ô¤ò²Ã»»
days += day - 1; // dayÆü¤ò²Ã»»¤·1°ú¤¯
return days;
// »ØÄꤷ¤¿ÆüÉÕ£±¤«¤éÆüÉÕ£²¤Þ¤Ç¤ÎÆü¿ô¤òÊÖ¤¹
#defcfunc CountDays int year1, int month1, int day1, int year2, int month2, int day2
if( year1 > year2 ) {
// ÆüÉÕ£±¤Îǯ¤ÎÊý¤¬Â礤¤¾ì¹çµÕž¤µ¤»¤ë
rflag = 1;
y1 = year2: m1 = month2: d1 = day2;
y2 = year1: m2 = month1: d2 = day1;
}
else {
rflag = 0;
y1 = year1: m1 = month1: d1 = day1;
y2 = year2: m2 = month2: d2 = day2;
}
// ¤¦¤ë¤¦Ç¯¤ÎÄêµÁ¾å¡¢400ǯʬ¤ÎÆü¿ô¤Ï¸ÇÄê¤Ê¤Î¤Ç°ìö½ü³°¤¹¤ë
y400d_1 = Div( y1, 400 ); // ÆüÉÕ£±¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾¦
y400m_1 = Mod( y1, 400 ); // ÆüÉÕ£±¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾ê;
y400d_2 = Div( y2, 400 ); // ÆüÉÕ£²¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾¦
y400m_2 = Mod( y2, 400 ); // ÆüÉÕ£²¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾ê;
// ¾ê;¤Ç½Ð¤¿Ç¯¤ò´ð½à¤È¤·¤Æ¡¢À¾Îñ1ǯ1·î1Æü¤«¤éÆüÉÕ£±¤Þ¤Ç¤ÎÆü¿ô¤ò·×»»
days1 = _Sub_CountDays(y400m_1, m1, d1);
// ÆüÉÕ£²¤Î½èÍý¤Ë´Ø¤·¤Æ¤âƱÍͤη׻»¤ò¹Ô¤Ê¤¦
days2 = _Sub_CountDays(y400m_2, m2, d2);
// ¹ç»»½èÍý¡¢½ü³°¤·¤¿400ǯʬ¤ÎÆü¿ô¤òÌᤷ¤Ä¤ÄÆü¿ô¤ò»»½Ð¤¹¤ë
rc = (y400d_2 - y400d_1) * 146097 + days2 - days1;
if( rflag ): rc = -rc; // µÕž¤·¤Æ¤¤¤¿¾ì¹ç¤Ï¥Þ¥¤¥Ê¥¹¤Ë¤¹¤ë
return rc;
// »ØÄꤷ¤¿ÆüÉդ˻ØÄêÆü¿ô¤ò¤·¤¿ÆüÉÕ¤òÊÖ¤¹
#deffunc GetDate int syear, int smonth, int sday, int pdays, var dyear, var dmonth, var dday
y400d_s = Div( syear, 400 ); // ÆüÉÕ¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾¦¡Ê°ìö½ü³°¡Ë
y400m_m = Mod( syear, 400 ); // ÆüÉÕ¤Îǯ¤ò400¤Ç³ä¤Ã¤¿¤È¤¤Î¾ê;
s_days = _Sub_CountDays(y400m_m, smonth, sday); // »ØÄꤷ¤¿ÆüÉÕ¤ÎÆü¿ô¤ò»»½Ð
// ²Ã»»¤¹¤ëÆü¿ô¤ò²Ã¹©
prc01_d = Div( pdays, 146097 ); // 400ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾¦¡Ê°ìö½ü³°¡Ë
prc01_m = Mod( pdays, 146097 ); // 400ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾ê;
y400d_s += prc01_d; // ǯ¿ô¡Ê400ǯʬ¡Ë¤ò²Ã»»
s_days += prc01_m; // Æü¿ô¤ò²Ã»»
// Æü¿ô¤«¤éÆüÉÕ¤ò»»½Ð¤·¤Æ¡¢ºÇ¸å¤Ë°ì»þ½ü³°¤·¤¿400ǯʬ¤Îǯ¿ô¤ò²Ã»»¤¹¤ë
prc01_d = Div( s_days, 146097 ); // 400ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾¦
prc01_m = Mod( s_days, 146097 ); // 400ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾ê;
prc02_d = Div( prc01_m, 36524 ); // Ìó100ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾¦
prc02_m = Mod( prc01_m, 36524 ); // Ìó100ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾ê;
if( prc02_d == 4 ): prc02_d--: prc02_m == 36524; // 0 <= prc02_d < 4 ¤ÎÈϰϤËÊäÀµ
prc03_d = Div( prc02_m, 1461 ); // Ìó4ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾¦
prc03_m = Mod( prc02_m, 1461 ); // Ìó4ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾ê;
prc04_d = Div( prc03_m, 365 ); // Ìó1ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾¦
prc04_m = Mod( prc03_m, 365 ); // Ìó1ǯʬ¤ÎÆü¿ô¤Ç³ä¤Ã¤¿¾ê;
if( prc04_d == 4 ): prc04_d--: prc04_m == 365; // 0 <= prc04_d < 4 ¤ÎÈϰϤËÊäÀµ
dyear = (y400d_s + prc01_d)*400 + prc02_d*100 + prc03_d*4 + prc04_d + 1; // ǯ¤ò»»½Ð
// ¾ê;¤Î¿ôÃͤ«¤é·î¤Î»»½Ð
leap = 59 + CheckLeap(dyear); // 1·î¤È2·î¤ò13·î¤È14·î¤È¤·¤Æ°·¤¦¤¿¤á¡¢¤¦¤ë¤¦Ç¯¤ò¹Íθ¤·¤¿ÊäÀµÄê¿ô
if( (prc04_m-leap) < 0 ) {
prc04_m += 306; // ¥Þ¥¤¥Ê¥¹ÃÍ¡Ê1·î¤È2·î¡Ë¤Î¾ì¹ç¤Ï3·î¡Á12·î¤ÎÆü¿ôʬ²Ã»»
}
else {
prc04_m -= leap; // ÊäÀµ¡Ê3·î1Æü¤¬0¤Ë¤Ê¤ë¡Ë
}
dmonth = (prc04_m * 5 + 2) / 153 + 3; // ·î¤Î»»½Ð¡Ê3·î¡Á14·î¡Ë
if( dmonth > 12 ): dmonth -= 12; // ·î¤ÎÊäÀµ¡Ê13·î¤È14·î¤ò1·î¤È2·î¤Ë¤¹¤ë¡Ë
// ¾ê;¤Î¿ôÃ͵ڤӡ¢»»½Ð¤·¤¿·î¤Î¿ôÃͤ«¤éÆü¤Î»»½Ð
if( dmonth < 3 ) {
// 1·î¤È2·î¤Î½èÍý
dday = prc04_m - ( (dmonth + 9) * 153 + 2 ) / 5 + 1;
}
else {
// 3·î°Ê¹ß¤Î½èÍý
dday = prc04_m - ( (dmonth - 3) * 153 + 2 ) / 5 + 1;
}
return;
// »ØÄꤷ¤¿ÆüÉÕ¤ÎÍËÆü¤òÊÖ¤¹ 0¤¬ÆüÍË¡¢1¤¬·îÍË¡¥¡¥¡¥6¤¬ÅÚÍË ¡Ê¥Ä¥§¥é¡¼¤Î¸ø¼°¤Ë¾¯¤·¼ê¤ò²Ã¤¨¤¿¤â¤Î¡Ë
#defcfunc GetDayOfWeek int year, int month, int day
p01 = year / 100;
p02 = year \ 100;
rc = day + (month + 1)*26/10 + p02 + p02/4 + p01/4 - p01*2 + 6;
rc \= 7;
return rc
// »ØÄꤷ¤¿ÍËÆü¤¬²¿Æü¸å¤«¤òÊÖ¤¹
#defcfunc CountNextDOW int dow
nowdow = gettime(2); // º£Æü¤ÎÍËÆü
rc = dow - nowdow;
if( rc <= 0 ) {
rc += 7;
}
return rc;
#global
// ÆüÉÕ+¡ûÆü¿ô¸å¤Îǯ·îÆü
year = 2018; // ǯ
month = 5; // ·î
day = 20; // Æü
GetDate year, month, day, 200, y, m, d;
mes strf("%dǯ%02d·î%02dÆü¤Î200Æü¸å¤Ï¡¢%dǯ%02d·î%02dÆü¤Ç¤¹¡£", year, month, day, y, m, d );
mes "¡¡¢µÕ¤â²Ä";
GetDate year, month, day, -200, y, m, d;
mes strf("%dǯ%02d·î%02dÆü¤Î200ÆüÁ°¤Ï¡¢%dǯ%02d·î%02dÆü¤Ç¤¹¡£", year, month, day, y, m, d );
// »ØÄꤷ¤¿ÆüÉÕ¤ÎÍËÆü¤ò¼èÆÀ
dow = GetDayOfWeek(year, month, day);
if( dow == 0 ) {
strdow = "ÆüÍËÆü";
}
else:if( dow == 1 ) {
strdow = "·îÍËÆü";
}
else:if( dow == 2 ) {
strdow = "²ÐÍËÆü";
}
else:if( dow == 3 ) {
strdow = "¿åÍËÆü";
}
else:if( dow == 4 ) {
strdow = "ÌÚÍËÆü";
}
else:if( dow == 5 ) {
strdow = "¶âÍËÆü";
}
else:if( dow == 6 ) {
strdow = "ÅÚÍËÆü";
}
mes strf("\n%dǯ%02d·î%02dÆü¤Ï¡¢%s¤Ç¤¹¡£", year, month, day, strdow );
// »ØÄꤷ¤¿ÍËÆü¤Ï²¿Æü¸å¤«¤ò¼èÆÀ
mes "\n¼¡¤ÎÆüÍËÆü¤Þ¤Ç¤¢¤È"+CountNextDOW(0)+"Æü¤Ç¤¹¡£";
// £²¤Ä¤ÎÆüÉÕ´Ö¤ÎÆü¿ô¤ò¼èÆÀ
year1 = 2018; // ǯ£±
month1 = 5; // ·î£±
day1 = 20; // Æü£±
year2 = 2068; // ǯ£²
month2 = 3; // ·î£²
day2 = 29; // Æü£²
d1 = CountDays(year1, month1, day1, year2, month2, day2);
d2 = CountDays(year2, month2, day2, year1, month1, day1);
mes strf("\n%dǯ%02d·î%02dÆü¤Ï¡¢%dǯ%02d·î%02dÆü¤Î%dÆü¸å¤Ç¤¹¡£", year2, month2, day2, year1, month1, day1, d1 );
mes "¡¡¢µÕ¤â²Ä";
mes strf("%dǯ%02d·î%02dÆü¤Ï¡¢%dǯ%02d·î%02dÆü¤Î%dÆü¸å¤Ç¤¹¡£", year1, month1, day1, year2, month2, day2, d2 );
¡ûÆü¸å¤ÎÆüÉÕ¼èÆÀ¤ä
£²¤Ä¤ÎÆüÉÕ¤ÎÆü¿ô¤ò¼èÆÀ¤¹¤ë´Ø¿ô¤Ç¤ÏÉé¿ô¤Ë¤âÂбþ¤·¤Æ¤ß¤Þ¤·¤¿¡£
¡ûÆü¸å¤ÎÆüÉÕ¼èÆÀ¤Ï¥×¥é¥¹¤Ï1Ëüǯ¸å¤Þ¤Ç¡¢¥Þ¥¤¥Ê¥¹¤Ïµª¸µÁ°1Ëüǯ¤Þ¤Ç³Îǧ¤·¤¿¤Î¤Ç
¤¿¤Ö¤ó¥ß¥¹¤Ï̵¤¤¤È»×¤¤¤Þ¤¹¡£
µª¸µÁ°¤òÀ¾Îñǯ·îÆü¤Ë¤¹¤ë°ÕÌ£¤Ï̵¤«¤Ã¤¿¤è¤¦¤Êµ¤¤â¤·¤Þ¤·¤¿¤¬¡¢
·ë²ÌŪ¤Ë½ÐÍè¤Æ¤·¤Þ¤Ã¤¿¤À¤±¤Ç¤¹¡£¡£¡£
| |
|
2018/5/21(Mon) 19:38:39|NO.84465
|
|
2018/5/22(Tue) 17:58:22|NO.84475
¤³¤ó¤Ë¤Á¤ï
¢³ä¤È´Êñ¤Ë¼ÂÁõ½ÐÍè¤Þ¤·¤¿
¤¢¤é¤ä¤µ¤ó¤Î¥â¥¸¥å¡¼¥ë¤ò»È¤¤¤Þ¤·¤¿
GENKI¤µ¤ó¤Î¤Ï13kb¤â¤¢¤Ã¤Æ
¤½¤ó¤Ê¤Î¤òÍý²ò½ÐÍè¤Ê¤¤¤Ã¤¹¤ß¤¿¤¤¤Ê
¥â¥¸¥å¡¼¥ë¤Î¤ª¤«¤²¤Ç¤¹
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿
¡ä¤è¤¯¤ï¤«¤ó¤Ê¤¤¥¨¥é¡¼¤â¤Á¤é¤Û¤é£÷
¤¿¤Ö¤ó̵¸Â¥ë¡¼¥×¤Çinput¤ËÉÁ²è¤·Â³¤±¤ë¥á¥¤¥ó¥ë¡¼¥Á¥ó¤¬¤¢¤Ã¤Æ
¥Ü¥¿¥ó¤ò²¡¤·¤Æ³ä¤ê¹þ¤à¤Î¤¬°¤¤¤ó¤À¤È»×¤¤¤Þ¤¹
µîǯ¡¢TOOL½¸½ñ¤¤¤Æ¤¿»þ¤â
¤½¤Î»ÅÍͤǶìÏ«¤·¤Þ¤·¤¿
|
|
2018/5/22(Tue) 21:22:03|NO.84476
¥¤¥ó¥×¥Ã¥È¤ËÂФ·¤Æ´üÂÔÄ̤ê¤Î¥¢¥¦¥È¥×¥Ã¥È¤¬¤¢¤ì¤Ð¤½¤Î²áÄø¤òÍý²ò¤¹¤ëɬÍפϤʤ¤¤Î¤Ç¤Ï¡£
|
|
2018/5/22(Tue) 23:10:20|NO.84479
¡ä¥½¥é¤µ¤ó
¤Ç¤¹¤Í¡£¤Ç¤â¤½¤ì¤À¤È
¥³¥Ô¥Ú¤¹¤ë¤À¤±¤Ë¤Ê¤Ã¤Á¤ã¤¤¤Þ¤¹¤«¤é¤Í
¤Á¤Ê¤ß¤Ë¢¤Ï
NO.84462¤Î¥â¥¸¥å¡¼¥ë¤ò
Ⱦʬ¤¯¤é¤¤¤·¤«Íý²ò¤·¤Æ¤Ê¤¤¤±¤É
ÍøÍѤµ¤»¤Æ¤¤¤¿¤À¤¤Þ¤·¤¿
|
|