Thanks for the inspiration. See attached. Maybe a "Schemer" can improve it?
Should this be in the docs? Where? Comments? - Bruce -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Toine Schreurs Sent: Thursday, April 06, 2006 7:45 PM To: Rick Hansen Cc: lilypond-user@gnu.org Subject: Re: Include date? I'm not familiar with Scheme. The strftime code was simply found at http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Time.html#Time But I could find some code to get the modification time filename = #"init.inc" mt = #(stat:mtime ( stat filename )) mtstr = #(strftime "%d-%m-%Y %T" (localtime mt)) See: http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/File-System.html#F ile-System But I don't know how to get the current .ly file into filename. Toine Schreurs > Also do you know of a way to get the "last modified date" of the > current .ly file from the file system? > > With the last modified date you can know when the .ly file last > changed along with the run date. > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
FileInfo.ly
Description: Binary data
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user