ÇҾƹöÁö

ÇҾƹöÁö - ¾Æ¹öÁö ¾Æµé ¹é¾÷ ȸÀü °è»ê±â
Áö±Ý ´Ù¿î·Îµå

ÇҾƹöÁö ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Ecometrica
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/ecometrica/

ÇҾƹöÁö ű×


ÇҾƹöÁö ¼³¸í

GrandfathersonÀº ÇҾƹöÁö - ¾Æ¹öÁö - ¾Æµé ȸÀü ü°è¸¦ ±¸ÇöÇÏ´Â ¹é¾÷ ȸÀü °è»ê±â ¸ðµâÀÔ´Ï´Ù. ÀÌ°ÍÀº ÀϹÝÀûÀ¸·Î ÀϺ°, ¸ÅÁÖ ¹× ¿ù°£ ¹é¾÷À» À¯ÁöÇÔÀ¸·Î½á ¼öÇàµË´Ï´Ù. ÀÌÀü ¹é¾÷Àº »ç¿ëµÇ´Â °ø°£ÀÇ ¾çÀ» ÁÙÀÌ·Á¸é Á¦°ÅµÇ¾î¾ßÇÕ´Ï´Ù .Usagethis ¸ðµâÀº DateTime.Date ¶Ç´Â DateTime.dateTime °´Ã¼¸¦ ÀÔ·ÂÀ¸·Î ±â´ëÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, 1999 ³â ÀüºÎÅÍ È¸ÀüÀÌ ÇÊ¿äÇÑ ÀÏÀÏ ¹é¾÷ÀÌÀÖ´Â °æ¿ì : >>> °¡Á® ¿À±â datetime >>> start_date = datetime.date (1999, 1, 1) >>> end_date = datetime.date (1999 , 12, 31) >>> ¹é¾÷ = >>> ¹é¾÷ ¸ÅÀÏ ÁõºÐ ¹é¾÷ÀÌÀÖ´Â ¸ÅÀÏ Åä¿äÀÏ¿¡ Àüü ¹é¾÷ÀÌ ¼öÇàµÇ¾ú´Ù°í °¡Á¤ ÇØ º¾½Ã´Ù. ÁõºÐ ¹é¾÷ÀÇ ÁÖ ¶Ç´Â 7 ÀÏ, 7 ÀÏÀ» À¯ÁöÇؾßÇÕ´Ï´Ù. Àüü ¹é¾÷ÀÇ °³¿ù ¶Ç´Â 4 ÁÖ µ¿¾È À¯ÁöµË´Ï´Ù. ¶ÇÇÑ 3 °³¿ù µ¿¾È ù ¹ø° Àüü ¹é¾÷Àº ¸Å¿ù¸¶´Ù À¯ÁöµË´Ï´Ù. ´Ù¸¥ »ç¶÷µéÀº »èÁ¦µÇ¾ú½À´Ï´Ù. ¸¶Áö¸· ³¯ÀÇ ¸¶Áö¸· ³¯¿¡ ¾î¶² ¹é¾÷À» Á¤¸® ÇؾßÇÏ´ÂÁö ¾Ë¾Æ ³»·Á°íÇÕ´Ï´Ù. >>> Now = DateTime.Date. (1999, 12, 31) ¾î¶² ÆÄÀÏÀ» º¸Á¸ ÇÒ ÆÄÀÏÀ» º¸·Á¸é DateS_To_Keep ±â´ÉÀ» »ç¿ëÇϽʽÿÀ. >>>ÀÇ Grandfatherson import dates_to_keep, Åä¿äÀÏ >>> Á¤·Ä (dates_to_keep (¹é¾÷, ÀÏ = 7, ÁÖ = 4, ´Þ = 3, ... FirstWeekday = Åä¿äÀÏ, Áö±Ý = Áö±Ý)) Áö±Ý Àμö¸¦ ¹þ¾î³ª´Â °æ¿ì datetime.dateTime.now ()¸¦ »ç¿ëÇÏ´Â °ÍÀÌ ±âº»°ªÀ¸·Î »ç¿ëµË´Ï´Ù. DateS_To_Delete ÇÔ¼ö¸¦ »ç¿ëÇÏ·Á¸é Grandfatherson¿¡¼­ >>>¿¡¼­ »ç¿ëÇϽʽÿÀ. Dates_to_Keep °¡Á® ¿À±â >>> Sorted (dates_to_delete (¹é¾÷, ÀÏ = 7, ÁÖ = 4, ¿ù = 3, ... firstweekday = Åä¿äÀÏ, Áö±Ý = Áö±Ý)) ¸¶Áö¸·À¸·Î Datetime Çü½ÄÀÇ Å¸ÀÓ ½ºÅÆÇÁ°¡ÀÖ´Â ¹é¾÷À» ȸÀü ÇؾßÇÏ´Â °æ¿ì ÇØ´ç To_Keep ¹× To_Delete ÇÔ¼ö¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. >>> Now = DateTime.Datetime (1999, 12, 31, 23, 59, 59) >>> start_datetime = datetime.datetime (1999, 12, 31, 0, 0, 0) >>> end_datetime = datetime.datetime (1999, 12, 31, 23, 59, 59) >> > backups = >>> ¹é¾÷ >>> Grandfatherson °¡Á® ¿À±â to_keep >>> ºÐ·ù ( to_keep (¹é¾÷, ½Ã°£ = 2, ºÐ = 10, ÃÊ = 10, Áö±Ý = Áö±Ý)) >>> Grandfatherson °¡Á® ¿À±â to_delete >>> Sorted (To_Delete (¹é¾÷, ½Ã°£ = 2, ºÐ = 10, ÃÊ = 10, Áö±Ý = ÀÌÁ¦)) Á¦Ç° ȨÆäÀÌÁö


ÇҾƹöÁö °ü·Ã ¼ÒÇÁÆ®¿þ¾î

MetaseQ.

Ĩ / RIP / RNA / * - SEQ µ¥ÀÌÅÍÀÇ ÅëÇÕ ºÐ¼® ¹× Ç÷ÎÆÃÀ»À§ÇÑ ÇÁ·¹ÀÓ ¿öÅ© ...

258

´Ù¿î·Îµå