in reply to Basic programming question

Since 24 hour clock is better than 12, i would ignore AM and PM thingies :). But in general (eg program structure in any similar situation), I would go with B is possible. It's more readable in my opinion.