func (c *Camera) LocalDaylight(on time.Time) (now time.Time, rise time.Time, set time.Time) {
	// determine our timezone from lat/long
	loc := c.Location()
	if loc == nil {
		return
	}

	if on.IsZero() {
		now = time.Now().In(loc)
	} else {
		now = on
	}

	rise, set = sunrise.SunriseSunset(c.Latitude, c.Longitude, now.Year(), now.Month(), now.Day())

	rise = rise.Add(-35 * time.Minute).In(loc)
	set = set.Add(45 * time.Minute).In(loc)

	return
}
// LocalDaylight returns current time, sunrise, and sunset for current moment, in the camera's local time.
LocalDaylight returns current time, sunrise, and sunset for current moment, in the camera's local time.
// LocalDaylight returns current time sunrise and sunset for current moment in the camera ' s local time .
func (c *Camera) LocalDaylight(on time.Time) (now time.Time, rise time.Time, set time.Time) {
	loc := c.Location()
	if loc == nil {
		return
	}
	if on.IsZero() {
		now = time.Now().In(loc)
	} else {
		now = on
	}
	rise, set = sunrise.SunriseSunset(c.Latitude, c.Longitude, now.Year(), now.Month(), now.Day())
	rise = rise.Add(-35 * time.Minute).In(loc)
	set = set.Add(45 * time.Minute).In(loc)
	return
}
func ( c * Camera ) LocalDaylight ( on time . Time ) ( now time . Time , rise time . Time , set time . Time ) { loc := c . Location ( ) if loc == nil { return } if on . IsZero ( ) { now = time . Now ( ) . In ( loc ) } else { now = on } rise , set = sunrise . SunriseSunset ( c . Latitude , c . Longitude , now . Year ( ) , now . Month ( ) , now . Day ( ) ) rise = rise . Add ( - 35 * time . Minute ) . In ( loc ) set = set . Add ( 45 * time . Minute ) . In ( loc ) return }
LocalDaylight returns current time, sunrise, and sunset for current moment, in the camera's local time.
LocalDaylight returns current time sunrise and sunset for current moment in the camera ' s local time .
// determine our timezone from lat/long