Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created October 30, 2020 00:53
Show Gist options
  • Save Unitech/990e697cdd154682c2f49a281d8854ef to your computer and use it in GitHub Desktop.
Save Unitech/990e697cdd154682c2f49a281d8854ef to your computer and use it in GitHub Desktop.
wittypi3
my_dir="`dirname \"$0\"`"
my_dir="`( cd \"$my_dir\" && pwd )`"
if [ -z "$my_dir" ] ; then
exit 1
fi
. $my_dir/utilities.sh
set_shutdown_time '??' '22' '38'
set_startup_time '??' '22' '39' '00'
# output RTC time
rtctime='>>> Your RTC time is: '
rtctime+="$(get_rtc_time)"
echo "$rtctime"
systime='>>> Your system time is: '
systime+="$(get_sys_time)"
echo "$systime"
shutdown_time=$(get_local_date_time "$(get_shutdown_time)")
echo $shutdown_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment