Code example for Time

Methods: formatparse3339switchTimezone

0
		} 
		return 0; 
	} 
	 
	public String getLocalTime() {
		Time newTime = new Time("UTC");
		newTime.parse3339(getDate());
		newTime.switchTimezone(localtimezone);
		return  newTime.format("%d-%b-%Y %H:%M:%S");
	} 
	 
	public long getTimeInLong() { 
		Time newTime = new Time("UTC");
		newTime.parse3339(getDate());
		newTime.switchTimezone(localtimezone);
		return newTime.toMillis(false);
	} 
	 
	@Override 
	public String toString() {
Stop searching for code, let great code find you!  Add Codota to your java IDE