Title (8k)
Dark (1k)
Skin Me:
Script Droplet BBEdit So Cheap, it's Free!

PHP Cheap Date is a freeware AppleScript solution to the somewhat confusing "date()" function in PHP. For example, what's the difference between date("g:i a") and date("H:i:s")? Why do you care? This script asks you for the parameters, then properly formats a date() function for you and assigns it to $theDate (which you of course can change).

Screenshot

PHP Cheap Date uses no OSAX or Scripting Additions and works either as a standalone AppleScript (as you see in the screenshot above) or from within BBEdit (my preferred text editor). Here are a few of the possible results:

TypeCurrent TimeExample Time
12 hour w/mins: 03:4603:57
12 hour (no leading 0): 3:463:57
24 hour w/mins: 15:4615:57
12 hour w/mins:secs: 3:46:31 pm3:57:16 pm
12 hour w/mins:secs: 3:46:31 PM3:57:16 PM
Dashes instead of Colons: 03-46-3103-57-16
No separators: 3463135716

Download

Download your copy of PHP Cheap Date from this link:
AppleScript Central - 29k, binhexed (StuffIt 5.x or Later)


Dark (1k)
Site Optimized for Internet Explorer 5.0 & Netscape 6.0 or later