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 | 6580da4755cf98aa9b0c32186536e80d7dd41f90 (patch) | |
tree | 625b19acd5d652b16a2cdba20644d073bbcf44e8 /utils | |
parent | da420eea7d4b3c685a10ba07fa49e41154167ed5 (diff) | |
download | external_llvm-6580da4755cf98aa9b0c32186536e80d7dd41f90.zip external_llvm-6580da4755cf98aa9b0c32186536e80d7dd41f90.tar.gz external_llvm-6580da4755cf98aa9b0c32186536e80d7dd41f90.tar.bz2 |
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
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/NewNightlyTest.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index f74711a..62054ed 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()); ############################################################## # |