Creation date script for Terminal?

Is there a shell script to get the creation time of a file? I would like to return a result in the form “ms” where “m” is minutes and “s” is seconds:

7:53:25 AM → “5325”

Assuming that you have GetFileInfo (/Developer/Tools/GetFileInfo), and that GetFileInfo is in your $PATH, this should work:

GetFileInfo -d filename | cut -c 15- | sed s/://