in reply to AM/PM in date and time format

perldoc POSIX and man strftime
#!/usr/bin/perl use warnings; use strict; use POSIX qw(strftime); print strftime("%I:%M:%S %Y/%m/%d %p", localtime());

Note I've used YYYY/MM/DD date format here, as you did in your example, but you state ARS wants the date in MM/DD/YYYY - so just change the appropriate letters.

Update: After looking at davorg's example (Bah - Beaten again :-) ) for a sec, he uses the %P (uppercase) format string - a GNU extension to strftime which returns the am/pm string in lowercase. %p (lowercase) returns it in uppercase - there's consistency for you. Still, it made me read the appropriate manual pages, so thanks davorg and AcidHawk.

Cheers


davis
Is this going out live?
No, Homer, very few cartoons are broadcast live - it's a terrible strain on the animator's wrist