I was able to find example code to get the current timestamp in Linux Epoch (Seconds since Midnight Jan 1st 1970), however I am having trouble finding an example as to how to calculate what the Epoch will be in the future, say for example 10 minutes from now, so how can I calculate a future time in Linux Epoch?
Share
This extension method should do the job:
And you can use it as such:
Note that you need to deal with all date-times in UTC (Universal Time), since that’s how the start of the Unix Epoch is defined.