Refine Precipitation's DateTime method comment

The Precipitation's DateTime method comment was adjusted to better reflect its functionality. Instead of stating it returns true if the precipitation data was available at the time of the query or not, it was clarified that the method actually returns the DateTime when the Precipitation value was recorded.
This commit is contained in:
Winni Neessen 2023-06-27 18:57:33 +02:00
parent 84ba2feda9
commit c9d95300c2
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -20,8 +20,7 @@ func (p Precipitation) IsAvailable() bool {
return !p.na
}
// DateTime returns true if an Precipitation value was
// available at time of query
// DateTime returns the DateTime when the Precipitation value was recorded
func (p Precipitation) DateTime() time.Time {
return p.dt
}