<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Periodic - A PHP based cron utility</title>
    <link>http://westhoffswelt.de/blog/periodic.html</link>
    <description>Periodic is a fully unit tested PHP based task runner. It is supposed to deliver a basic implementation for managing all kinds of recurring tasks and events inside your web application. It has been designed with having all kinds of different web hosting environments in mind. It is capable of running on most shared hosting systems as well as root servers.
</description>
    <language>en</language>
    <copyright>CC by-nc-sa</copyright>
    <managingEditor>Jakob Westhoff</managingEditor>
    <managingEditor>Jakob Westhoff &lt;jakob@westhoffswelt.de&gt;</managingEditor>
    <pubDate>Thu, 29 Jan 2009 21:56:25 +0000</pubDate>
    <lastBuildDate>Wed, 04 Feb 2009 22:44:26 +0000</lastBuildDate>
    <generator>eZ Components Feed dev (http://ezcomponents.org/docs/tutorials/Feed)</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <item>
      <title>Jakob at Sat, 31 Jan 2009 18:42:15 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_6</link>
      <description>Thanks for looking this up. :)&#13;
&#13;
I am using gentoo on all of my systems and there it clearly states the following:&#13;
&#13;
field          allowed values&#13;
-----          --------------&#13;
minute         0-59&#13;
hour           0-23&#13;
day of month   1-31&#13;
month          0-12 (or names, see below)&#13;
day of week    0-7 (0 or 7 is Sun, or use names)&#13;
&#13;
But if it is defined otherwise in your manpage it really seems to be a typo here. &#13;
Besides I still can not see any useful semantical definition in the value zero.&#13;
&#13;
greetings&#13;
Jakob</description>
      <author>Jakob</author>
      <pubDate>Sat, 31 Jan 2009 17:42:15 +0000</pubDate>
    </item>
    <item>
      <title>Eliot Pearson at Sat, 31 Jan 2009 13:53:37 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_5</link>
      <description>I checked the manpage on my system and it had a range of 1-12.  So I pretty sure it's a typo.  Which distro are you using?&#13;
&#13;
month          1-12 (or names, see below)&#13;
&#13;
</description>
      <author>Eliot Pearson</author>
      <pubDate>Sat, 31 Jan 2009 12:53:37 +0000</pubDate>
    </item>
    <item>
      <title>Jakob at Sat, 31 Jan 2009 00:07:13 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_4</link>
      <description>@Robin: I got the information from the vixiecron manpage(5). &#13;
&#13;
I am starting to think this could possibly just a documentation error. I have decided to ignore the problem for now and just support values from 1-12 in the month field. Maybe someone will complain about this and can then tell be definetly what the value zero is supposed to do in this context.&#13;
&#13;
Thanks for all your input :)&#13;
&#13;
greetings&#13;
Jakob</description>
      <author>Jakob</author>
      <pubDate>Fri, 30 Jan 2009 23:07:13 +0000</pubDate>
    </item>
    <item>
      <title>Robin Mehner at Fri, 30 Jan 2009 11:59:05 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_3</link>
      <description>Hi Jakob,&#13;
&#13;
I'm not an expert in C, but looking into the header files of vixie-cron (cron.h in this case) there are definitions for FIRST_MONTH (which is 1) and LAST_MONTH (which is 12).&#13;
&#13;
Weekdays are also defined there, with 0 and 7 as borders.&#13;
&#13;
I think that there is some kind of misleading manual which states this wrong. Where did you read this?&#13;
&#13;
I found some site of another cron projekt which states that they try to handle to 0 as "January of next year", but unfortunately I can't find it anymore.&#13;
&#13;
Hope this helps a litte bit.</description>
      <author>Robin Mehner</author>
      <pubDate>Fri, 30 Jan 2009 10:59:05 +0000</pubDate>
    </item>
    <item>
      <title>Jakob at Fri, 30 Jan 2009 06:43:39 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_2</link>
      <description>Thanks for the hint. Unfortunately I am still not quite sure about this. Because if the month field is really zero based in the crontab file it would only be defined as a range of numbers between 0-11 and not between 0-12. &#13;
&#13;
For weekdays it is clearly stated that 0 and 7 are the same day (Sunday) and therefore a range of 0-7 is allowed. &#13;
&#13;
I can't find any equally enlightening explanation for the 0-12 month range. &#13;
&#13;
Maybe someone else can shed a little light on this?&#13;
&#13;
greetings&#13;
Jakob</description>
      <author>Jakob</author>
      <pubDate>Fri, 30 Jan 2009 05:43:39 +0000</pubDate>
    </item>
    <item>
      <title>Dominic at Fri, 30 Jan 2009 04:59:38 +0100</title>
      <link>http://westhoffswelt.de/blog/periodic.html#comment_1</link>
      <description>I guess 0-12 is done to allow the value 0-11. The index starts as 0.&#13;
In the code.c (line 163 and following, ftp://metalab.unc.edu/pub/Linux/system/daemons/cron/cron3.0pl1.tar.gz) is written:&#13;
&#13;
/* make 0-based values out of these so we can use them as indicies&#13;
	 */&#13;
minute = tm-&gt;tm_min -FIRST_MINUTE;&#13;
hour = tm-&gt;tm_hour -FIRST_HOUR;&#13;
dom = tm-&gt;tm_mday -FIRST_DOM;&#13;
month = tm-&gt;tm_mon +1 /* 0..11 -&gt; 1..12 */ -FIRST_MONTH;&#13;
&#13;
Maybe this helps</description>
      <author>Dominic</author>
      <pubDate>Fri, 30 Jan 2009 03:59:38 +0000</pubDate>
    </item>
  </channel>
</rss>

