Garbage Burrito

Topic

Author Topic
Rheaghen-za
rheaghen

Retro Coding Tricks

08 28, 2006 @ 11:09AM

I was talking with my dad last night, when Dater formatting came up. He show me a cool little math trick to re-arrange a date

assume you have a date string 20060506

and you want to make it 05062006

not too challanging with todays tools. but how'd those guys get 'er done in the old days?

20060506 * 10000.0001 == 200605062006.0506
do some truncations and Presto! you've got re-organized digits!

thx for the neet ole' trick Pops!

Comments

Author Comments
Picture1
Ben Kittrell
08 30, 2006 @ 12:00PM

It's amazing what people will come up with when there toolset doesn't always do the job. This reminds me of the Getting Real philosophy. If you give someone just enough to accomplish their task, they'll find imaginative ways to do it.


powered by : Doodlekit Online Free Website Builder : developed by : Doodlebit™ Website Company