In German we don’t have the expression “am” and “pm”. We use the 24-hour system (military time).
To say “o’clock” we use “Uhr”.
2am: zwei Uhr (2 Uhr)
6pm: achtzehn Uhr (18 Uhr)
12pm: zwölf Uhr (12 Uhr)
0am: null Uhr (0 Uhr) [That’s the only exception. We don’t say 24 Uhr when it’s midnight.]
How to say hours and minutes? – (the official way)
3.20am: drei Uhr zwanzig (3.20 Uhr)
6.10pm: achtzehn Uhr zehn (18.10 Uhr)
0.45am: null Uhr fünfundvierzig (0.45 Uhr)
The second way to say the time (the informal way in daily life)
nach: all minutes from 1 – 30
vor: all minutes from 31 – 59
3.20am: zwanzig nach drei (3.20 Uhr)
6.10pm: zehn nach sechs (18.10 Uhr) [if we use this way to say the time we usually don’t use the military time]
1.45am: fünfundvierzig nach eins (0.45 Uhr)
The quarters
To mark the special time points 15min, 30min and 45min past a full hour we use these expressions:
15min: viertel nach (quarter past)
30min: halb (half to)
45min: viertel vor (quarter to)
3.15am: viertel nach drei (3.15 Uhr)
6.30am: halb sieben (6.30 Uhr)
8.45am: viertel vor neun (8.45 Uhr)