1

changing date to resemble "messages file" date

view story
linux-howto

http://www.unix.com – the following was taken from a perl script: Code: my $date = strftime "%B %d %H:%M:%S", localtime; how can i modify it so this date outputs the date in the form of the date of the messages file. for example: Code: Sep 20 11:48:44 As it is right now, the perl script outputs the date like this: Code: September 20 11:50:45 also, in the messages file, if the date of the current day is a single digit day (for example the 6th of september), it outputs the date like this: Code: Sep  6 11:48:44 notice there are two spaces between the month and the date. how (HowTos)