NAME

is_nighttime - Exit status of true if it is currently nighttime

SYNOPSIS

is_nighttime [-v] [-f FILE]
is_nighttime && echo 'It is Nighttime!'

OPTIONS

-v

verbose

-f FILE - default /etc/local.coordinates

Specify alternate configuration file

DESCRIPTION

Uses the system coordinates as configured from the perl package Geo::Local::Server and with the perl package DateTime::Event::Sunrise calculates the next sunset and sunrise to determine if it is currently daytime or nighttime

EXIT STATUS

The exit status is 0 if it is nighttime. The exit status is 1 if it is daytime.