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: 09:4903:57
12 hour (no leading 0): 9:493:57
24 hour w/mins: 21:4915:57
12 hour w/mins:secs: 9:49:34 pm3:57:16 pm
12 hour w/mins:secs: 9:49:34 PM3:57:16 PM
Dashes instead of Colons: 09-49-3403-57-16
No separators: 9493435716

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