Comment on Wish there was a toggle for it like there is on phones

<- View Parent
Zagorath@aussie.zone ⁨1⁩ ⁨week⁩ ago

As far as pseudocode goes, this is pretty damn good. The main thing I’d change is that things in “quotes” generally represent strings, i.e. literal text. Variable names usually don’t have quotes around them. That’s a universal enough trait of real programming languages that it would almost never not transfer to pseudocode. Also, numbers intended to be read as numbers don’t typically have quotes.

How I would change this accordingly

If am_pm_indicator = “pm” AND hour =/= 12 ADD 12 to hour Else Ignore the am/pm indicator, time is correct in 24 hour format. # Leaving this as-is because it’s more like a comment than code anyway

source
Sort:hotnewtop