时间戳服务
This commit is contained in:
@ -66,10 +66,6 @@ public interface TtsAgent {
|
||||
public class TtsParseResult {
|
||||
// 时间
|
||||
private String timestamp;
|
||||
// 时间
|
||||
private Date datestamp;
|
||||
// 时间
|
||||
private LocalDateTime localDateTimestamp;
|
||||
|
||||
// hash 值
|
||||
private String hash;
|
||||
@ -82,14 +78,6 @@ public interface TtsAgent {
|
||||
this.timestamp = timestamp;
|
||||
this.hash = hash;
|
||||
this.cert = cert;
|
||||
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
this.localDateTimestamp =LocalDateTime.parse(timestamp,dtf);
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
try {
|
||||
this.datestamp = sdf.parse(timestamp);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
@ -115,23 +103,5 @@ public interface TtsAgent {
|
||||
public void setCert(String cert) {
|
||||
this.cert = cert;
|
||||
}
|
||||
|
||||
public LocalDateTime getLocalDateTimestamp() {
|
||||
return localDateTimestamp;
|
||||
}
|
||||
|
||||
public TtsParseResult setLocalDateTimestamp(LocalDateTime localDateTimestamp) {
|
||||
this.localDateTimestamp = localDateTimestamp;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Date getDatestamp() {
|
||||
return datestamp;
|
||||
}
|
||||
|
||||
public TtsParseResult setDatestamp(Date datestamp) {
|
||||
this.datestamp = datestamp;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user