mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-06-21 08:09:24 +00:00
Add Java Date for timestamps
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package org.servalproject.servaldna.meshmb;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by jeremy on 10/10/16.
|
||||
*/
|
||||
@ -9,6 +11,7 @@ public class PlyMessage implements Comparable<PlyMessage>{
|
||||
public final long offset;
|
||||
public final String token;
|
||||
public final long timestamp;
|
||||
public final Date date;
|
||||
public final String text;
|
||||
|
||||
public PlyMessage(long _row, long offset, String token, long timestamp, String text){
|
||||
@ -16,6 +19,7 @@ public class PlyMessage implements Comparable<PlyMessage>{
|
||||
this.offset = offset;
|
||||
this.token = token;
|
||||
this.timestamp = timestamp;
|
||||
this.date = new Date(timestamp * 1000);
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user