いつも忘れるので健忘録。
java.time.ZonedDateTime.now().toEpochSecond()
で 1516884244
のような秒数が得られられる。 以上
More than 5 years have passed since last update.
Scala/JavaでZonedDateTimeよりunixtime(秒)を取得する
Last updated at Posted at 2018-01-25
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
11