[systemd-devel] Feature request: schedule jobs for last day of month

Frederick Grose fgrose at gmail.com
Mon Feb 4 18:20:58 PST 2013


On Mon, Feb 4, 2013 at 8:42 PM, Dave <dave at flex.com.au> wrote:

>  In the year 2013, of the month of February, on the 4th day, Larry Baker
> wrote:
> > What about "2012-02~4" (leave off the "-")?  Thus, "-" implies day (days
> > from the start) of the month, "~" implies days from the end of the month.
>
>  Nice.  I like this one.  Simple, neat, and feels right.  The tilde is
> significantly different, that I can tell at a glance it's not a standard
> date format, yet similar enough that it feels like one.
>
>
> > Should both notations have the same "1" base?  That is, "*-*-1" is the
> > first day of the month.  Is "*-*~1" the last day of the month?  Or, is
> "~"
> > a delta, so that "*-*~0" is the last day of the month?
>
>  A delta makes sense from a mathematical perspective, but intuitively,
> "~1" leaps out at me as last-day-of-month, "~2" as second last day, etc.
>

Like a Bash 0-based array offset: ${array[*]: -1}


>
>  Cheers,
>  dave.k
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130204/aa60652f/attachment.html>


More information about the systemd-devel mailing list