Code example for Pattern

Methods: split

0
		DateTimePair res = new DateTimePair();
 
		Date tm = new Date( sinceEpoch * 1000 );
		String tmRes = prettyDatePairFormatter_.format(tm);
 
		String[] together = dateSplitRegEx.split(tmRes);
		if (together.length > 1)
		{ 
			res.date = together[0];
			res.time = together[1];
		}  
		else 
		{ 
			res.date = together[0];
			res.time = "";
		} 
		return res;
	} 
 
	static String prettyAmount( BigDecimal val, String currency )
Experience pair programming with AI  Get Codota for Java