Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void am2pm()
{
hour = Bcd2Dec(hour);
if (hour > 12)
{
AMPM = 0x60;
hour -= 12;
}
else
{
AMPM = 0x40;
}
hour = Dec2Bcd(hour);
hour = hour + AMPM;
}
void am2pm()
{
hour = Bcd2Dec(hour) & 0x1F;
if (hour > 12)
{
AMPM = 0x60;
hour -= 12;
}
else
{
AMPM = 0x40;
}
hour = Dec2Bcd(hour);
hour = hour + AMPM;
}