OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Current date?


Speaking of dates and timestamps, we had a need to timestamp our set of
books with today's date, but keep the timestamps of the books within the
set at the date of the last change.  We wrote a shell script that reads
the source directory of each book, gets the date of the file that was
changed most recently, and writes a file with entities for each book,
with that date.  That file itself is then included as an entity in the
common entity file.  You can view the script here:


(We're using SGML, but this would work with XML too.)



> > Is there something I can put in my docbook, that will represent the
> > current date, so that when the stylesheets process my file, the current
> > date is put there?
> * generate a timestamp (this is a M$-DOS example)
> echo %date% %time% >timestamp.txt

Robert McIlvride (robert@cogent.ca)
Cogent Real-Time Systems (www.cogent.ca)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]