zmanim_get_sunrise_sunset
Calculate sunrise and sunset times for any location and date using accurate astronomical algorithms.
Instructions
Get sunrise and sunset times for a specified location and date.
This tool calculates the times of sunrise and sunset based on astronomical calculations, taking into account the geographic location. The calculations use the NOAA algorithm for accuracy.
Args: params (LocationInput): Input parameters containing: - location (str): Name of the location - latitude (float): Latitude in decimal degrees (-90 to 90) - longitude (float): Longitude in decimal degrees (-180 to 180) - time_zone (str): IANA timezone identifier - date (Optional[str]): Date in YYYY-MM-DD format (defaults to today) - response_format (ResponseFormat): 'markdown' or 'json'
Returns: str: Formatted sunrise and sunset times in the requested format
Example: For New York on a winter day, sunrise might be at 7:15 AM and sunset at 4:30 PM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |