diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-06 04:12:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-06 04:12:13 +0000 |
commit | 529f913f556d5319a0416c3e6ee32977561d28da (patch) | |
tree | b8c54d9691e512519d32b48dd18344c17156905e | |
parent | 04b3960bfe576297dbe0a7304440276254ec9a00 (diff) | |
download | bcm5719-llvm-529f913f556d5319a0416c3e6ee32977561d28da.tar.gz bcm5719-llvm-529f913f556d5319a0416c3e6ee32977561d28da.zip |
NewNighlytTest: Fix timestamp format to actually make sense (it was missing the hour).
llvm-svn: 86229
-rwxr-xr-x | llvm/utils/NewNightlyTest.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/NewNightlyTest.pl b/llvm/utils/NewNightlyTest.pl index f74711a44d0..62054edf879 100755 --- a/llvm/utils/NewNightlyTest.pl +++ b/llvm/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()); ############################################################## # |