[jboss-cvs] jboss-seam/src/main/org/jboss/seam/framework ...
Gavin King
gavin.king at jboss.com
Thu Oct 5 17:15:23 EDT 2006
User: gavin
Date: 06/10/05 17:15:23
Added: src/main/org/jboss/seam/framework CurrentDate.java
CurrentDatetime.java CurrentTime.java
Log:
current datetime components
Revision Changes Path
1.1 date: 2006/10/05 21:15:23; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/framework/CurrentDate.java
Index: CurrentDate.java
===================================================================
package org.jboss.seam.framework;
import java.util.Date;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
@Name("currentDate")
@Scope(ScopeType.STATELESS)
public class CurrentDate
{
@Unwrap
public Date getCurrentDate()
{
return new java.sql.Date( System.currentTimeMillis() );
}
}
1.1 date: 2006/10/05 21:15:23; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/framework/CurrentDatetime.java
Index: CurrentDatetime.java
===================================================================
package org.jboss.seam.framework;
import java.util.Date;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
@Name("currentDatetime")
@Scope(ScopeType.STATELESS)
public class CurrentDatetime
{
@Unwrap
public Date getCurrentDatetime()
{
return new java.sql.Timestamp( System.currentTimeMillis() );
}
}
1.1 date: 2006/10/05 21:15:23; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/framework/CurrentTime.java
Index: CurrentTime.java
===================================================================
package org.jboss.seam.framework;
import java.util.Date;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
@Name("currentTime")
@Scope(ScopeType.STATELESS)
public class CurrentTime
{
@Unwrap
public Date getCurrentTime()
{
return new java.sql.Time( System.currentTimeMillis() );
}
}
More information about the jboss-cvs-commits
mailing list