<div class="gmail_quote">On Thu, Aug 5, 2010 at 9:46 AM, Jean-Christophe Fillion-Robin <span dir="ltr">&lt;<a href="mailto:jchris.fillionr@kitware.com">jchris.fillionr@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi Folks, <br><br>Earlier in the day, somebody asked me how he could obtain &quot;today date&quot; using cmake. <br>I replied there was no direct way to obtain the date and I told him to use a macro I wrote. <br>See <a href="http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3TodayMacro.cmake?rev=11898&amp;view=log" target="_blank">http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3TodayMacro.cmake?rev=11898&amp;view=log</a><br>



<br>Is there a better a way to retrieve &quot;today date&quot; ?<br></blockquote><div><br></div><div><br></div><div>Not yet. But it would be a relatively easy feature to add to CMake if somebody wants to sponsor it.</div>
<div><br></div><div>I envision a new cmake command, or an extension to an existing command (like string with a NOW or NOW_UTC arg...) that returns a complete timestamp string (something like &quot;2010-08-04 14:00:44.235675 UTC&quot;) and/or the components of such a string as a cmake list (&quot;2010;8;4;14;0;44;235675;UTC&quot;).</div>
<div><br></div><div>Any sponsors out there? :-)</div><div><br></div><div><br></div><div>David</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>Thks<br>Jc<br clear="all"><font color="#888888"><br>-- <br>Phone: 1-518-836-2174<br>Ext: 304<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>