<div dir="ltr"><div>BTW</div><div><br></div><div>Not  specifically Java, the date bug is down to ISO 8601 defining something called a week year due to some organisations wanting years to contain a whole number of weeks.</div><div><br></div><div><a href="http://en.wikipedia.org/wiki/ISO_week_date">http://en.wikipedia.org/wiki/ISO_week_date</a><br></div><div><br></div><div>if you look at <a href="http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html">http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html</a> from your example you will see that YYYY and yyyy may provide different years for a few days each year.</div><div><br></div><div>So if you get confused and use the wrong one it will work perfectly, until it doesn't :)</div><div><br></div><div>Yay, code!</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 7:02 PM, Alice Kaerast <span dir="ltr"><<a href="mailto:alice@kaerast.info" target="_blank">alice@kaerast.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Bradlug,<div><br></div><div>There's been some interesting updates to some topics covered at this month's meeting in the past few days.</div><div><br></div><div>David's woes with formatting dates accurately have been felt by Twitter, who had a partial outage last night.  It was caused by some code simliar to the following:</div><div><br></div><div>  scala> new java.text.SimpleDateFormat("w YYYY").format(new java.util.Date)</div><div>  res0: String = 1 2015</div><div><br></div><div>Oops, the java year-end leap week raises it's head again.  This is actually the first week of 2015 in java world, so Twitter was sending headers for 365 days in the future.</div><div><br></div><div>This might be a good place to mention <a href="http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time" target="_blank">http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time</a> and the linked follow-up post.</div><div><br></div><div>And following on from t'other Dave's talk,  at 31c3 this week we learnt that security of the GSM mobile network is horribly broken (4G is marginally better).  And that the NSA can break at least some implementations of SSH and VPNs.  But it's believed that PGP, Jabber with OTR and RedPhone are probably still secure.</div><div><br></div><div>Also at 31c3 was a talk on data flows at airports, nothing terribly new - but a decent slide deck I can use to do a powerpoint karaoke talk next month if people are interested.</div><div><br></div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div>Alice</div></font></span><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 December 2014 at 21:44, John R. Hudson <span dir="ltr"><<a href="mailto:j.r.hudson@virginmedia.com" target="_blank">j.r.hudson@virginmedia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all<br>
<br>
Meeting notes from last Monday, complete with links - thanks David and<br>
David - are now up; I have also changed the Meeting page to reflect the<br>
fact that meetings in 2015 will now be on the second Monday of each<br>
month.<br>
<br>
John<br>
<br>
<br>
<br>
_______________________________________________<br>
Bradford mailing list<br>
<a href="mailto:Bradford@mailman.lug.org.uk" target="_blank">Bradford@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/bradford" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/bradford</a><br>
</blockquote></div><br><div><br></div>
</div></div></div></div>
<br>_______________________________________________<br>
Bradford mailing list<br>
<a href="mailto:Bradford@mailman.lug.org.uk">Bradford@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/bradford" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/bradford</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Kriss<br><br><a href="http://www.WetGenes.com/" target="_blank">http://www.WetGenes.com/</a><br></div></div>
</div>