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); |