There are two ways to display the time on your phone. The 24-hour clock is used when the 24-hour clock is turned on, and the 12-hour clock is used when it is turned off.
Setting method
realme UI 6.0: Settings > System & updates > Date & time > 24-hour format
realme UI 5.0 & 4.0 & 3.0: Settings > System / Additional Settings > Date & time > 24-hour format
realme UI 2.0 & 1.0: Settings > Additional Settings > Time & Date > 24-hour format
realme UI R & Go & S & T & U Edition: Settings > System > Date & time >Time format > Use 24-hour format
Related Articles:
How to check the up time of phone
How to set the time display format