Click here to Skip to main content
15,113,057 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Gem... As time goes by.. PinPopular
CDP18028-Jan-12 23:48
MemberCDP18028-Jan-12 23:48 
GeneralRe: Gem... As time goes by.. PinPopular
Estys8-Jan-12 23:57
MemberEstys8-Jan-12 23:57 
GeneralRe: Gem... As time goes by.. Pin
CDP18029-Jan-12 0:02
MemberCDP18029-Jan-12 0:02 
GeneralRe: Gem... As time goes by.. Pin
virang_219-Jan-12 0:08
Membervirang_219-Jan-12 0:08 
GeneralRe: Gem... As time goes by.. Pin
Estys9-Jan-12 0:15
MemberEstys9-Jan-12 0:15 
GeneralRe: Gem... As time goes by.. Pin
CDP18029-Jan-12 0:33
MemberCDP18029-Jan-12 0:33 
GeneralRe: Gem... As time goes by.. Pin
Rajesh Anuhya9-Jan-12 21:17
professionalRajesh Anuhya9-Jan-12 21:17 
GeneralRe: Gem... As time goes by.. Pin
Estys9-Jan-12 22:32
MemberEstys9-Jan-12 22:32 
That depends entirely on the input, we're not dealing with a real time format here.
As said by others here, thse method is wrong in many respects.
My comment denoted that there are 11 "AM" entries and 13 "PM" entries.
So if "24" is input, the output should logically be "AM", not "PM".

Cheers
If you can read this, you don't have Papyrus installed

GeneralRe: Gem... As time goes by.. Pin
PIEBALDconsult10-Jan-12 3:44
professionalPIEBALDconsult10-Jan-12 3:44 
GeneralRe: Gem... As time goes by.. Pin
Brady Kelly10-Jan-12 6:37
MemberBrady Kelly10-Jan-12 6:37 
GeneralRe: Gem... As time goes by.. Pin
PIEBALDconsult10-Jan-12 6:55
professionalPIEBALDconsult10-Jan-12 6:55 
GeneralRe: Gem... As time goes by.. Pin
User 274316210-Jan-12 23:42
MemberUser 274316210-Jan-12 23:42 
GeneralRe: Gem... As time goes by.. Pin
GenJerDan11-Jan-12 4:55
MemberGenJerDan11-Jan-12 4:55 
GeneralRe: Gem... As time goes by.. Pin
James Lonero11-Jan-12 19:10
MemberJames Lonero11-Jan-12 19:10 
GeneralRe: Gem... As time goes by.. Pin
GenJerDan12-Jan-12 4:05
MemberGenJerDan12-Jan-12 4:05 
GeneralRe: Gem... As time goes by.. Pin
Steve Burchett12-Jan-12 11:13
MemberSteve Burchett12-Jan-12 11:13 
GeneralRe: Gem... As time goes by.. Pin
krumia14-Feb-12 20:10
Memberkrumia14-Feb-12 20:10 
GeneralRe: Gem... As time goes by.. Pin
Robert Rohde9-Jan-12 0:54
MemberRobert Rohde9-Jan-12 0:54 
GeneralRe: Gem... As time goes by.. Pin
virang_219-Jan-12 1:07
Membervirang_219-Jan-12 1:07 
GeneralRe: Gem... As time goes by.. Pin
BobJanova9-Jan-12 1:54
MemberBobJanova9-Jan-12 1:54 
GeneralRe: Gem... As time goes by.. Pin
ii_noname_ii9-Jan-12 2:36
Memberii_noname_ii9-Jan-12 2:36 
GeneralRe: Gem... As time goes by.. Pin
Stefan_Lang10-Jan-12 6:36
mveStefan_Lang10-Jan-12 6:36 
GeneralRe: Gem... As time goes by.. Pin
Lilith.C10-Jan-12 10:03
MemberLilith.C10-Jan-12 10:03 
GeneralRe: Gem... As time goes by.. Pin
BobJanova13-Jan-12 0:43
MemberBobJanova13-Jan-12 0:43 
GeneralRe: Gem... As time goes by.. Pin
Lilith.C13-Jan-12 6:04
MemberLilith.C13-Jan-12 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.