API Reference > imodeljs-frontend > Utils > calculateSunriseOrSunset calculateSunriseOrSunset Function Beta calculate solar sunrise or sunset for a given day and location. calculateSunriseOrSunset(date: Date, location: Cartographic, sunrise: boolean): Date Parameter Type Description date Date location Cartographic sunrise boolean Returns - Date Defined in core/frontend/src/SolarCalculate.ts Line 215 Last Updated: 13 June, 2024