>DC>         $sunday = strtotime('1 January 1995'); // That day was a Sunday
>DC>   return strftime("%A", $sunday+(3600*24*$day));
>DC>     }
>
>So despite asking for a way to do it without using dates in functions,
>that's exactly what you're doing?
>
>Heh, gotta love this list sometimes.

No need to be rude - you asked for a way to do it without knowing the
specific date. Jan 1 1995 was chosen because the 1st happens to be a
sunday, enabling you to take advantage of localized date functions.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to