func (c *Camera) IsDark() bool {
	// if we're not diurnal, or if location is apparently nonsense, we're never dark
	if !c.Diurnal || (c.Latitude == 0.0 && c.Longitude == 0.0) {
		return false
	}

	now, rise, set := c.LocalDaylight(time.Time{})

	return now.Before(rise) || now.After(set)
}
// IsDark indicates whether the camera is currently offline/sleeping due to
// darkness. If the camera is not diurnal, this always returns false.
IsDark indicates whether the camera is currently offline/sleeping due to
darkness. If the camera is not diurnal, this always returns false.
// IsDark indicates whether the camera is currently offline / sleeping due to // darkness . If the camera is not diurnal this always returns false .
func (c *Camera) IsDark() bool {
	if !c.Diurnal || (c.Latitude == 0.0 && c.Longitude == 0.0) {
		return false
	}
	now, rise, set := c.LocalDaylight(time.Time{})
	return now.Before(rise) || now.After(set)
}
func ( c * Camera ) IsDark ( ) bool { if ! c . Diurnal || ( c . Latitude == 0.0 && c . Longitude == 0.0 ) { return false } now , rise , set := c . LocalDaylight ( time . Time { } ) return now . Before ( rise ) || now . After ( set ) }
IsDark indicates whether the camera is currently offline/sleeping due to
darkness.
IsDark indicates whether the camera is currently offline / sleeping due to darkness .
// if we're not diurnal, or if location is apparently nonsense, we're never dark