From: Ted Kremenek Date: Wed, 14 May 2008 17:23:56 +0000 (+0000) Subject: Zero-pad the month and day fields in the output HTML directory. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d7405fafd5bc08d38bc75579927bf414570bd61;p=clang Zero-pad the month and day fields in the output HTML directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51109 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index 4098990e4c..890f0145a5 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -40,7 +40,7 @@ sub GetHTMLRunDir { my $day = $CurrentTime[3]; my $month = $CurrentTime[4] + 1; - my $DateString = "$year-$month-$day"; + my $DateString = sprintf("%d-%02d-%02d", $year, $month, $day); # Determine the run number.