From: Daniel Dunbar Date: Fri, 6 Nov 2009 04:12:13 +0000 (+0000) Subject: NewNighlytTest: Fix timestamp format to actually make sense (it was missing the hour). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6580da4755cf98aa9b0c32186536e80d7dd41f90;p=oota-llvm.git NewNighlytTest: Fix timestamp format to actually make sense (it was missing the hour). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86229 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index f74711a44d0..62054edf879 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -122,8 +122,9 @@ my $WebDir = $ENV{'WEBDIR'}; # Calculate the date prefix... # ############################################################## +use POSIX; @TIME = localtime; -my $DATE = sprintf "%4d-%02d-%02d_%02d-%02d", $TIME[5]+1900, $TIME[4]+1, $TIME[3], $TIME[1], $TIME[0]; +my $DATE = strftime("%Y-%m-%d_%H-%M-%S", localtime()); ############################################################## #