Creating a clock (12 hour clock)

Hello. Can you share all the codes about a.m and p.m clock?