KBD

Keith Devens .com

Wednesday, October 15, 2008 Flag waving
You can have premature generalization as well as premature optimization. – Bjarne Stroustrup
← Entry 1161Entry 1163 →

Daily link icon Monday, December 31, 2001

Entry 1162

I've just been fixing up my PHP calendar code a little bit. After looking at Steven Rebello's code, I noticed that date() can return the number of days in the month... should have figured that in the first place. Also, I realized yesterday when skiing that my code didn't account for "empty days" at the end of the month after the last day. So while the resulting HTML looked right, I actually didn't complete the table correctly - so I'm fixing that too.

← Entry 1161Entry 1163 →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

October 2008
SunMonTueWedThuFriSat
 1234
567891011
12131415161718
19202122232425
262728293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 4 posts

Recent comments XML

new⇒Girls, please don't get breast implants

you people implants are fine these​days but they are like body organs​not e...

kym: Oct 15, 5:25pm

Spider solitaire

I have now won, at the "Difficult"​level, 186 games of Spider​Solitaire.  I...

75.179.28.113: Oct 13, 9:34am

I hate PHP

Elliot Anderson,

Dude!! You the​man! The reverse replacement for​array_u...

Alex Ndungu: Oct 11, 1:35am

Generated in about 0.174s.

(Used 8 db queries)

mobile phone