Code example for Date

Methods: beforegetTime

0
	public Timestamp(Date date) {
		this.date = date;
	} 
	 
	public Date getDate() {
		return new Date(date.getTime());
	} 
	 
	public boolean hasPassed() { 
		final Date now = new Date();
		return date.before(now);
	} 
	 
	public boolean isBefore(Timestamp ts) {
		return date.before(ts.getDate());
	} 
	 
	public String toString() {
		return  date.toString();
	}