DateTime :: Event :: Cron.

DateTime :: Event :: Cronは、Crontab行とファイルからの再発セットを生成するためのDateTime拡張子です。
今すぐダウンロード

DateTime :: Event :: Cron. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Matthew P. Sisk
  • 出版社のWebサイト:
  • http://search.cpan.org/stigmata/HTML-CalendarMonthSimple-1.25/CalendarMonthSimple.pm

DateTime :: Event :: Cron. タグ


DateTime :: Event :: Cron. 説明

DateTime :: Event :: Cronは、crontab行とファイルからの再発セットを生成するためのDateTime拡張子です。 DateTime :: Event :: Cronは、crontab linesとfilesからの繰り返しセットを生成するためのDateTime拡張です。 #datetime :: Crontab Lineからの構築を設定します$ crontab = '* / 3151-103,4,5 * / 2'; $ set = datetime ::イベント:: cron-> from_cron($ crontab); $ ITER = $ SET-> ITERATOR(後=> DATETIME->現在); (1){My $ NEXT = $ ITER->次へ}私の$ now = datetime->今;スリープ(($ NEXT-> SUBTRACT_DATETIME_ABSOLUTE($ NOR)) - >秒); datetime :: crontab fileからオブジェクトを設定します。@ sets = datetime :: event :: cron-> from_crontab(file => '/ crontab'); $ now = datetime->今; "Now:"、Now-> Datetime、 "n"; foreach(@sets){My $ NEXT = $ _->次の($ NOR);印刷$ NEXT-> DATETIME、「N」; #dateTime :: set parameters $ crontab = '* * * * *'; $ now = datetime->今; %set_parms =(今後=> $); $ set = datetime ::イベント:: cron-> from_cron(cron => $ crontab、%set_parms); $ DT = $ SET->次へ; "、"、$ now-> datetime、 "とnext:"、$ dt-> datetime、 "n"; #datetime :: set $ crontab = '* * * * *'を設定します。 $ now = datetime->今; $ NOW2 = $ Now->クローン; $ span = datetime :: span-> from_datetimes(start => $ now→add(minutes => 1)、end => $ NOW2->追加(hour => 1)、)。 %parms =(cron => $ crontab、span => $ span); $ set = datetime :: event :: cron-> from_cron(%parm); #... DateTime :: Set#1月1日にRTFCTを設定します。$ crontab = '7-106,12-1510-28 / 2 * / 33,4,5'; $ date = datetime->> truncate(to => '年'); $ set = datetime :: event :: cron-> from_cron(cron => $ crontab、後=> $ date); #dateTime :: Setオブジェクトを生成するのではなく、次へ/ prev#計算を直接行うことができます。参照日#デフォルトはDateTime->になりました。 $ crontab = '10,14,18 * * * '; $ DTC = DATETIME :: EVENT :: CRON-> NEW_FROM_CRON(CRON => $ CRONTAB); $ NEXT_DATETIME = $ DTC->次へ; $ LAST_DATETIME = $ DTC->前の; ...#crontab file @dtc = datetime ::イベント:: cron-> new_from_crontab(file => '/ etc / crontab')のDateTime :: Cronオブジェクトの一覧::イベント:: cron-> new_from_crontab(ファイル=> '/ etc / crontab'); #/ etc / crontab#または/etc/cron.dのファイルなどのユーザーを持つフルクロン線はサポートされて自動検出されます。$ crontab = '* * * * * gump / bin / date'; $ DTC = DateTime :: Event :: Cron-> New(cron => $ crontab); #user_modeパラメータで明示的に#enable / disableを明示的にenable / disableした場合、ユーザーの自動検出は無効になっています。$ DTC = DATETIME :: Event :: Cron-> New(cron => $ crontab、user_mode => 1); My $ USER = $ DTC->ユーザー。 My $ command = $ dtc->コマンド; #未解決のオリジナルのcronエントリMy $ ORIGIAL = $ DTC->オリジナル;要件: ・Perl


DateTime :: Event :: Cron. 関連ソフトウェア

no

NOIDは、Mintへのルーチンを含むPerlモジュールで、素敵な不透明識別子を管理します。 ...

214

ダウンロード