KNightTime

Helpers for scheduling the dark-light cycle.

This library provides a C++ API that provides information about the times of the dark-light cycle. It can be used to implement such as adjusting the screen color temperature depending on time of day, etc.

Using the Module

Using a KDE module's C++ API requires linking against the module library. The preferred way of consuming the library is through CMake.

Building with CMake

Use the find_package() command to locate the needed module component in the KF6 package:

find_package(KNightTime REQUIRED COMPONENTS KNightTime)
target_link_libraries(mytarget PRIVATE KNightTime)

For more details, see the Build with CMake overview.

API Reference