A shell native method of getting the epoch value for a given date stamp
This script was written to run on macos with coreutils installed, there are several commands that begin with g
that will need to have the g
removed to run on another system.
Test script runs:
1000 tries: https://asciinema.org/a/6q9TPpe4cZA4Ll49vDl3mj1tq
10000 tries: https://asciinema.org/a/z1KBV1Sri9zv2xv4jhu6frFFR