Code example for Timestamp

Methods: getTime

0
  public void setCode(String code) {
    this.code = code;
  } 
 
  public Date getTimestamp() {
    return new Date(timestamp.getTime());
  } 
 
  public void setTimestamp(Date time) {
    this.timestamp = new Timestamp(time.getTime());
  } 
 
  public static String toCode(Uri uri) {
    return new MD5Digest(uri.toString()).toString();
  } 
}