Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class mock {
- public long getUnixSeconds(LocalDateTime dateTime) {
- ZoneId defaultZoneId = ZoneId.systemDefault(); //Europe/İstanbul for this system.
- long epoch = dateTime.atZone(defaultZoneId).toEpochSecond();
- return epoch;
- }
- }
Add Comment
Please, Sign In to add comment