Useful algorithms
if (mm2 < 3) {
JD2 = int((gg2 - 1) * 365.25) + int((mm2 + 12) * 30.6 + (float)0.7) + dd2;
}
else {
JD2 = int(gg2 * 365.25) + int(mm2 * 30.6 + (float)0.7) + dd2;
}
Automatic change of the brightness of the clock display depending on the illumination
One of the functions useful for the clock user is the automatic change of the display brightness. When there is a high level of illumination in the room where the clock is used, the brightness of the clock display automatically increases. When the light level is low, the brightness of the clock display automatically decreases. Thanks to this function, the clock will not blind your eyes in the evening and early in the morning, in a darkened room. And also will not annoy the inability to recognize the readings of the current time in a brightly lit room.
Copyright © 2026 Ardudea | Powered by Envira