[brlcad-commits] SF.net SVN: brlcad:[43642] brlcad/branches/cmake/misc/CMake/test_srcs/time. c.in
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2011-03-02 23:25:04
|
Revision: 43642 http://brlcad.svn.sourceforge.net/brlcad/?rev=43642&view=rev Author: starseeker Date: 2011-03-02 23:24:58 +0000 (Wed, 02 Mar 2011) Log Message: ----------- Add the zero for day, not just month. 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 2011-03-02 23:20:47 UTC (rev 43641) +++ brlcad/branches/cmake/misc/CMake/test_srcs/time.c.in 2011-03-02 23:24:58 UTC (rev 43642) @@ -14,6 +14,7 @@ outfpmonth = fopen("${CONFIG_TIME_MONTH_FILE}", "w"); outfpyear = fopen("${CONFIG_TIME_YEAR_FILE}", "w"); fprintf(outfpts, "%s", asctime(currenttime)); + if (currenttime->tm_mday + 1 < 10) fprintf(outfpday, "0"); fprintf(outfpday, "%d", currenttime->tm_mday); if (currenttime->tm_mon + 1 < 10) fprintf(outfpmonth, "0"); fprintf(outfpmonth, "%d", currenttime->tm_mon + 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |