I just made a 3-buzzer alarm clock using the DS1307... it works great, but I'm wondering how I code in whether the time is AM or PM... or can you even DO that? Or, does it work in 24-hour format?

Thanks, MikalThor

A quick google and read of the Data sheet shows that the clock can be "set" in either 12 or 24 hour mode, and if in 12 hour which bit to read to get A.M. or P.M. Alternatively you could probably decode this yourself by testing the "Hours" integer, if it is greater than 12 then subtract 12 and "set" the am/pm status to pm?

It's easier to run an RTC in 24 hour mode and let software such as the Time library select 12 or 24 hour mode.