merge r499763 from branch - add methods to repository metadata class

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@499790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2007-01-25 13:37:44 +00:00
parent 8831e55e78
commit e5644518bd
1 changed files with 9 additions and 4 deletions

View File

@ -226,10 +226,15 @@
<code> <code>
public void updateTimestamp() public void updateTimestamp()
{ {
java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" ); setLastUpdatedTimestamp( new java.util.Date() );
java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" ); }
fmt.setTimeZone( timezone );
setLastUpdated( fmt.format( new java.util.Date() ) ); public void setLastUpdatedTimestamp( java.util.Date date )
{
java.util.TimeZone timezone = java.util.TimeZone.getTimeZone( "UTC" );
java.text.DateFormat fmt = new java.text.SimpleDateFormat( "yyyyMMddHHmmss" );
fmt.setTimeZone( timezone );
setLastUpdated( fmt.format( date ) );
} }
</code> </code>
</codeSegment> </codeSegment>