API Reference > imodeljs-common > Utils > calculateSunriseOrSunset calculateSunriseOrSunset Function calculateSunriseOrSunset(date: Date, location: Cartographic, sunrise: boolean): Date Parameter Type Description date Date location Cartographic sunrise boolean Returns - Date Defined in core/common/src/SolarCalculate.ts Line 223 Last Updated: 12 June, 2024