Guest User

Untitled

a guest
Jan 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class mock {
  2. public long getUnixSeconds(LocalDateTime dateTime) {
  3. ZoneId defaultZoneId = ZoneId.systemDefault(); //Europe/İstanbul for this system.
  4. long epoch = dateTime.atZone(defaultZoneId).toEpochSecond();
  5. return epoch;
  6. }
  7. }
Add Comment
Please, Sign In to add comment