Here you can find the source of secondsAgo(Instant end)
public static long secondsAgo(Instant end)
//package com.java2s; //License from project: Open Source License import java.time.*; public class Main { public static long secondsAgo(Instant end) { return Duration.between(Instant.EPOCH, end).getSeconds(); }/*w w w . ja v a 2 s.c om*/ }