[brlcad-commits] SF.net SVN: brlcad:[40151] brlcad/branches/cmake/misc/CMake/test_srcs/time. c.in
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2010-08-13 14:18:00
|
Revision: 40151 http://brlcad.svn.sourceforge.net/brlcad/?rev=40151&view=rev Author: starseeker Date: 2010-08-13 14:17:54 +0000 (Fri, 13 Aug 2010) Log Message: ----------- Make the date formatting add the extra 0 if month < 10 to make the date string match the output from date command Modified Paths: -------------- brlcad/branches/cmake/misc/CMake/test_srcs/time.c.in Modified: brlcad/branches/cmake/misc/CMake/test_srcs/time.c.in =================================================================== --- brlcad/branches/cmake/misc/CMake/test_srcs/time.c.in 2010-08-13 14:06:54 UTC (rev 40150) +++ brlcad/branches/cmake/misc/CMake/test_srcs/time.c.in 2010-08-13 14:17:54 UTC (rev 40151) @@ -15,6 +15,7 @@ outfpyear = fopen("${CONFIG_TIME_YEAR_FILE}", "w"); fprintf(outfpts, "%s", asctime(currenttime)); fprintf(outfpday, "%d", currenttime->tm_mday); + if (currenttime->tm_mon + 1 < 10) fprintf(outfpmonth, "0"); fprintf(outfpmonth, "%d", currenttime->tm_mon + 1); fprintf(outfpyear, "%d", currenttime->tm_year + 1900); fclose(outfpts); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |