[cmake-developers] patch for cmake that adds a new timestamp command

David Cole david.cole at kitware.com
Thu Sep 27 08:37:26 EDT 2012


Hmmmm. Good idea.

Should we add a new command for this? Or should it be a sub-command of
"string(" like RANDOM is?

And... while we're at it, I've always thought we should add the
ability to get the creation/modified/access times from a file via the
CMake file command. If we allow getting the "current" time, we should
leverage some of the same transformation-to-string code in the file
command to get the various times associated with a file.

What do other devs here think:
New command or string sub-command for this functionality?


Thanks,
David


On Thu, Sep 27, 2012 at 7:25 AM, Nils Gladitz <gladitz at sci-vis.de> wrote:
> I've tried creating a patch (attached; should apply to master) that adds a
> timestamp creation command.
> It builds on strftime but only allows a limited number of conversion
> specifiers.
> I tried to only allow those which are portable (C89), locale independent and
> of fixed range and length (with the exception of "%Y").
>
> Nils
>
> --
> Nils Gladitz, B.Sc.
> DICOM, Konnektivität und Entwicklung
>
> Scivis wissenschaftliche Bildverarbeitung GmbH
> Bertha-von-Suttner-Str. 5
> D-37085 Göttingen
> GERMANY
> Handelsregister Nr. / Trade Register No. B3100 Göttingen
> Geschäftsführer / Managing Directors Dr. Gernot Ebel, Dr. Uwe Engeland
>
> Tel: 0049 (0)551 634181-28
> E-Mail: gladitz at scivis.de
> Web: www.scivis.de
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers



More information about the cmake-developers mailing list