to convert to 12 hour format you do the following:

between 0000 and 0059, add 12 hours

between 0100 and 1159, straight conversion to AM

between 1200 and 1259, straight conversion to PM

between 1300 and 2359, subtract 12 hours

Here is a function you can put in your sketch that will convert the 24 hour format from the library to 12 hour format

`byte hours24To12(byte hours){`

if( hours == 0 )

return 12; // 12 midnight

else if( hours > 12)

return hours - 12 ;

else

return hours ;

}

Determining AM/PM is easier, if the 24 hour value is < 12 its AM , otherwise its PM

I will add these functions to the next release of the library, let me know how you get on.