Skip to main content
Commonmark migration
Source Link

SmileBASIC, 67 bytes

INPUT T$P=POP(T$)>"a
TMREAD"00:"+T$OUT,H,M?H MOD 12+12*P,T$[3];T$[4]

#SmileBASIC, 67 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H MOD 12+12*P,T$[3];T$[4] InputInput: HH:MMa/p

Output: HH MM

#SmileBASIC, 67 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H MOD 12+12*P,T$[3];T$[4] Input: HH:MMa/p

Output: HH MM

SmileBASIC, 67 bytes

INPUT T$P=POP(T$)>"a
TMREAD"00:"+T$OUT,H,M?H MOD 12+12*P,T$[3];T$[4]

Input: HH:MMa/p

Output: HH MM

added 17 characters in body
Source Link
12Me21
  • 6.7k
  • 1
  • 22
  • 40

#SmileBASIC, 5167 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H+12*PH MOD 12+12*P,MT$[3];T$[4] Input: HH:MMa/p

Output: HH MM

#SmileBASIC, 51 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H+12*P,M Input: HH:MMa/p

Output: HH MM

#SmileBASIC, 67 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H MOD 12+12*P,T$[3];T$[4] Input: HH:MMa/p

Output: HH MM

removed seconds
Source Link
12Me21
  • 6.7k
  • 1
  • 22
  • 40

#SmileBASIC, 5051 bytes INPUT T$P=POP(T$)>"a TMREAD T$OUT HTMREAD"00:"+T$OUT,MH,SM?H+12*P,M,S Input: HH:MM:SSaMMa/p

Output: HH MM SS

#SmileBASIC, 50 bytes INPUT T$P=POP(T$)>"a TMREAD T$OUT H,M,S?H+12*P,M,S Input: HH:MM:SSa/p

Output: HH MM SS

#SmileBASIC, 51 bytes INPUT T$P=POP(T$)>"a TMREAD"00:"+T$OUT,H,M?H+12*P,M Input: HH:MMa/p

Output: HH MM

Source Link
12Me21
  • 6.7k
  • 1
  • 22
  • 40
Loading