From: Peter O. <obe...@us...> - 2013-03-13 10:28:10
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv799/bin Modified Files: genhtml Log Message: genhtml: add time to date string Add the current time to the date information in the HTML output generated by genhtml. This way users can differentiate results when creating HTML output multiple times a day. Based on patch by syl...@de.... Index: genhtml =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/genhtml,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** genhtml 1 Feb 2013 11:44:03 -0000 1.75 --- genhtml 13 Mar 2013 10:28:07 -0000 1.76 *************** *** 2589,2596 **** my $month; my $day; ! ($year, $month, $day) = (localtime())[5, 4, 3]; ! return sprintf("%d-%02d-%02d", $year+1900, $month+1, $day); } --- 2589,2601 ---- my $month; my $day; + my $hour; + my $min; + my $sec; ! ($year, $month, $day, $hour, $min, $sec) = ! (localtime())[5, 4, 3, 2, 1, 0]; ! return sprintf("%d-%02d-%02d %02d:%02d:%02d", $year+1900, $month+1, ! $day, $hour, $min, $sec); } |