Å©·Î³ëÀÌÅÍ

Çü½Ä°ú °°Àº cronÀÌÀÖ´Â DateTime °´Ã¼¿¡ ´ëÇÑ ¹Ýº¹À» Á¦°øÇÕ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Å©·Î³ëÀÌÅÍ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Matsumoto Taichi
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/taichino/

Å©·Î³ëÀÌÅÍ Å±×


Å©·Î³ëÀÌÅÍ ¼³¸í

Cron°ú °°Àº DateTime °´Ã¼¿¡ ´ëÇÑ ¹Ýº¹À» Á¦°øÇÕ´Ï´Ù »ç¿ë ¿¹ : >>> Croniter °¡Á® ¿À±â Croniter¿¡¼­ >>> Datetime °¡Á® ¿À±â DateTime (2010, 1, 25, 4, 46) >>> iter = croniter ( '* / 5 * * * * ',º£À̽º) # 5 ¸¶À̳ʽº¸¶´Ù >>> Àμâ Iter.get_next (datetime) # 2010-01-2504:50:00 >>> Àμâ Iter.get_next (datetime) # 2010-01-2504:55:00 >>> Àμâ Iter.get_next (Datetime) # 2010-01-2505:00:00 >>>>>> iter = croniter ( '24 * * mon, fri', base) # 04:02 ¸ÅÁÖ ¿ù¿äÀÏ¿¡ # 04:02 ¹× ±Ý¿äÀÏ >>> Àμâ Iter.get_next (Datetime) # 2010-01-2604:02:00 >>> Àμâ Iter.get_next (datetime) # 2010-01-3004:02:00 >>> Àμâ iter. get_next (DateTime) # 2010-01-2505 : 00 : 00Àº »ý¼ºÀÚ¿Í get_next ÀÎ °ÍÀ» ¾Ë¾Æ¾ßÇÕ´Ï´Ù. >>> def __init __ (self, cron_format, start_time = time.time ()) croniter croniter witerate 'start_time'¿¡¼­ 'cron_format'. cron_format´Â Day_OF_Weak 'Day_OF_Wek'ÀÔ´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº http://en.wikipedia.org/wiki/cronÀ» ÂüÁ¶ÇϽʽÿÀ. >>> def get_next (self, ret_type = float) get_next ´ÙÀ½ ¹ø ¹Ýȯ ret_type '. RET_TYPEÀº 'float'¶Ç´Â 'datetime'¸¸ ¼ö¶ôÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


Å©·Î³ëÀÌÅÍ °ü·Ã ¼ÒÇÁÆ®¿þ¾î