package org.bitmessagej.model;

import java.util.Date;

import org.codehaus.preon.annotation.BoundNumber;
import org.codehaus.preon.buffer.ByteOrder;

public class Time {
	
	@BoundNumber(byteOrder=ByteOrder.BigEndian, size="64")
	private Long value;
	
	public Time() {
		setDate(new Date());
	}

	public Long getValue() {
		return value;
	}

	public void setValue(Long value) {
		this.value = value;
	}
	
	public void setDate(Date date) {
		this.value = date.getTime();
	}
	
	public Date getDate() {
		return new Date(getValue());
	}
	
}

@@ -434,29 +434,25 @@
 te) %7B%0A%09%09
-this.v
+setV
 alue
- = 
+(
 date.get
@@ -457,16 +457,17 @@
 etTime()
+)
 ;%0A%09%7D%0A%09%0A%09

fix code coverage issue