- if [[ "$returnState" = "true" ]]; then echo "$OUTPUT"; fi
-
-
- # if [[ "$OPTION_DATEPARSE" = "true" ]]; then
- # echo "asdf";
- # # Get current time for parsing year/month/day idiosyncrasies
- # DATE_NOW="$(TZ=":UTC" date --iso-8601 | tr -d '[:punct:]')"; # Produces YYYYMMDD
- # #TIME_CURRENT="$(date --iso-8601=seconds)" ; # Produce `date`-parsable current timestamp with resolution of 1 second.
- # # Get date : Given YYYY-MM-DDTHH:MM:SS+ZZ, outputs YYYYMMDD (also supports YYYYYY)
- # DATE_AGO="$(TZ="UTC" date -d '$ARG1 seconds ago' --iso-8601=seconds | tr -d '[:punct:]' | cut -dT -f1)";
- # # Get day
- # DAY_AGO=${DATE_AGO: -2}
- # # Get month
- # MONTH_AGO=${DATE_AGO: -4: -2}
- # # Get year
- # YEAR_AGO=${YEAR: 0: -4}
-
- # fi