[ProgSoc] Predict Sydney traffic?

James Ducker jducker at it.uts.edu.au
Thu Dec 2 20:57:55 EST 2010


if (isWeekday() && (currentTime > 0730 && currentTime < 1030) ||
(currentTime > 1445 && currentTime < 1900)) {
   traffic.setStatus("Slow as hell");
} else {
   traffic.setStatus("Road works in progress, expect delays");
}

>From whom do I collect my reward?


-- 
James Ducker
Fancy Man of Cornwood
http://www.studioj.net.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://progsoc.org/pipermail/progsoc/attachments/20101202/9060d6ca/attachment.html>


More information about the Progsoc mailing list