[lug] Remember Y2K?

Bear Giles bgiles at coyotesong.com
Mon Feb 24 17:10:38 MST 2014

'Week 53' isn't really that surprising if you're comfortable using week
numbers - no more surprising than leap days.

But doing math with the week number? You have to be careful - you could be
off by a week if you don't remember that some years have 52 weeks and some
years have 53 weeks and it's a complex pattern once you add leap years.

Plus there's at least three standard versions. Start on Sunday, start on
Monday, and I've seen businesses start on Wednesday.

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

> On Mon, 24 Feb 2014 16:17:36 -0700
> Bear Giles wrote:
> > I don't know your needs but don't forget that 1-in-7 years has a 'week
> > 53'.
> And, %W = "week number of year, with Monday as first day of week" as
> opposed to
> %U = week number of year, with Sunday as first day of week
> So besides being an abomination, %W I think violates the rule of least
> surprise. And, depending on your expectations, leads to optionally 2-in-7
> years having a week #53.
> I think I should use the word orthogonal in here someplace.
> _______________________________________________
> 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/270a9484/attachment.html>

More information about the LUG mailing list