From f55b5ecc1ccb92ca783dd9cda9c35c95d335d900 Mon Sep 17 00:00:00 2001 From: kados Date: Wed, 20 Sep 2006 02:59:53 +0000 Subject: [PATCH] zero-pad the month and day. --- value_builder/usmarc_field_952v.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/value_builder/usmarc_field_952v.pl b/value_builder/usmarc_field_952v.pl index b757e1de82..30eb0d242e 100755 --- a/value_builder/usmarc_field_952v.pl +++ b/value_builder/usmarc_field_952v.pl @@ -64,7 +64,10 @@ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year +=1900; $mon +=1; -my $date = "$year-$mon-$mday"; +$pmon = sprintf("%0*d", "2",$mon); + +$pmday = sprintf("%0*d", "2",$mday); +my $date = "$year-$pmon-$pmday"; my $res = "