Subversion Repositories XServices

Compare Revisions

Regard whitespace Rev 70 → Rev 81

/xservices/trunk/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java
64,11 → 64,16
public BigInteger getTimestamp() {
Date d = new Date();
long l = d.getTime();
BigInteger timestamp = new BigInteger(Long.toString(l));
return timestamp;
return new BigInteger(Long.toString(l));
}
 
public BigInteger getTimestamp2() {
Date d = new Date();
long l = d.getTime()/1000;
return new BigInteger(Long.toString(l));
}
public GregorianCalendar getInTimezone(GregorianCalendar cal,
String timezone) throws XServicesFault {
if(! isValidTimezone(timezone)) throw new XServicesFault(ERR_INVALIDTIMEZONE);