1 public long createTimestamp() {
2 ZoneId zoneId = ZoneId.systemDefault();
3 return LocalDateTime.now().atZone(zoneId).toEpochSecond();
4 }
1long test_timestamp = 1499070300L;
2LocalDateTime triggerTime =
3 LocalDateTime.ofInstant(Instant.ofEpochSecond(test_timestamp),
4 TimeZone.getDefault().toZoneId());
5
6System.out.println(triggerTime);
7