author: alex_tea [+], Submitted: 04.24.04 11a • Last Edit: 04.24.04 11a
Avg. Rating: 4

usage

msg1 { orangechicken [+], posted: 03.20.06 9p•-, top [^] }
Now if you can just do it but for parsing!
msg2 { lr [+], posted: 05.07.08 11a•-, top [^] }
suffix doesn't result with the correct results for 11, 12, 13
expected result: 11th, 12th, 13th NOT 11st, 12nd, 13rd
msg3 { Vagabond [+], posted: 03.30.09 11a•03.30.09 11a, top [^] }
When I implement this prototype (and the pad prototype you linked) I get the following errors:

**Error** Line 43: There is no method with the name 'pad'.
gmtOffset = ((-tZOffset >= 0) ? "+" : "-") + (Math.floor((Math.abs(tZOffset) / 60) / 60) * 100).pad(4);

**Error** Line 44: There is no method with the name 'getTimeZoneOffset'.
dayLight = (this.getTimeZoneOffset() < new Date(fullYear, monthNum - 6).getTimeZoneOffset()) ? 1 : 0;

Total ActionScript Errors: 2 Reported Errors: 2

I included the pad prototype in the same AS file as this prototype and I even tried including it within the prototype definition itself, but neither worked.

Also, the detailed instructions link leads to a 404