Skip to content
sneppets

sneppets

  • Privacy
add hours to timestamp unix 2

How to add hours to unix timestamp or epochmilli in java?

February 4, 2020February 12, 2020 Editorial StaffLeave a Comment on How to add hours to unix timestamp or epochmilli in java?

This tutorial explains how to add hours to unix timestamp or epochmilli using TimeUnit in Java. You may face situations like adding hours, minutes and seconds to an timestamp for display purpose in UI. Let’s see how to do that.

Java hours, java, timestamp
Copyright © 2018 Sneppets. All Rights Reserved