lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Include date?


From: Fairchild
Subject: RE: Include date?
Date: Sat, 17 Jun 2006 16:37:56 -0500

Thanks for the inspiration.

See attached.  Maybe a "Schemer" can improve it?

Should this be in the docs?  Where?

Comments?

                             - Bruce

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Toine Schreurs
Sent: Thursday, April 06, 2006 7:45 PM
To: Rick Hansen
Cc: address@hidden
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
address@hidden http://lists.gnu.org/mailman/listinfo/lilypond-user

Attachment: FileInfo.ly
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]