[lug] Remember Y2K?

Bear Giles bgiles at coyotesong.com
Mon Feb 24 16:17:36 MST 2014


I don't know your needs but don't forget that 1-in-7 years has a 'week 53'.

Bear


On Mon, Feb 24, 2014 at 4:16 PM, Jed S. Baer <blug at jbaer.cotse.net> wrote:

> On Mon, 24 Feb 2014 16:06:08 -0700
> Jeffrey S. Haemer wrote:
>
> > My solution was to change it to 10#$(date +%W)
> >
> > Is there a better solution?
>
> $ echo "$(date +%-W)"
> 8
>
> The - tells it do not zero pad.
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20140224/12a3f2bf/attachment.html>


More information about the LUG mailing list