On 2011-03-24 Philipp Gesang <pges...@ix.urz.uni-heidelberg.de> wrote:
This should also work: \starttext \startluacode function modification_date (file) local f = file local attr = lfs.attributes (f) assert (type(attr) == "table") if attr.mode ~= "directory" then return os.date("%Y-%m-%d %H:%M",attr.modification) end end \stopluacode \unexpanded\def\getdate{% \ctxlua{context(modification_date ("\jobname.tex"))}% } \getdate \stoptext Marco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________