API Reference > imodeljs-frontend > Views > DisplayStyle3dState > setSunTime setSunTime Method Set the solar light direction based on time value setSunTime(time: number): void see DisplayStyle3dSettings.sunTime to obtain the current sun time. see DisplayStyle3dSettings.setSunTime. Parameter Type Description time number The time in unix time milliseconds. Returns - void Defined in core/frontend/src/DisplayStyleState.ts Line 1153 Last Updated: 11 June, 2024