[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Date, HeadURL tag formatting

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Fri, 21 Nov 2008 01:25:12 -0600

On Nov 21, 2008, at 00:16, vinay i wrote:

> Hello Ryan, David
> Any thoughts on this?

You don't need to email me additionally; I'll see your message on the
list when I have time. :)

> I was wondering if it is possible to change the date format in the
> HeadURL, Date keywords. The way date is displayed is yyyy-mm-dd.
> Would it be possible to change it to yyyy/mm/dd format?

Well the book says:

http://svnbook.red-bean.com/en/1.5/
svn.advanced.props.special.keywords.html

> Date
> This keyword describes the last time the file was known to have
> been changed in the repository, and is of the form $Date:
> 2006-07-22 21:42:37 -0700 (Sat, 22 Jul 2006) $. It may also be
> specified as LastChangedDate. Unlike the Id keyword, which uses
> UTC, the Date keyword displays dates using the local time zone.
>

So, use a locale that specifies the date format as yyyy/mm/dd and the
Date keyword should use it.

The HeadURL keyword doesn't have a date in it. If you meant the Id
keyword, then it will always use UTC format.

> Id
> This keyword is a compressed combination of the other keywords. Its
> substitution looks something like $Id: calc.c 148 2006-07-28
> 21:30:43Z sally $, and is interpreted to mean that the file calc.c
> was last changed in revision 148 on the evening of July 28, 2006 by
> the user sally. The date displayed by this keyword is in UTC,
> unlike that of the Date keyword (which uses the local time zone).
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-21 08:25:39 CET

This is an archived mail posted to the Subversion Users mailing list.