2005-03-06

Basic Date Manipulation in One Line of MSH

When I was a young boy, I met a former VP of Exxon named Rik. He was a rather eccentric fellow who lived across the street from my uncle. He was a very nice man, who even gave me an old 286 he didn't need anymore.

That 286 had a program on it that Rik had written. It was your basic date calculator: enter two dates and see the difference between them in Gregorian and Julian days. He wrote it to calculate interest on T-bills.

Years later, MSH makes such a thing easy. One-liner easy.

MSH>[DateTime].Now

Sunday, March 06, 2005 22:37:34


MSH>[DateTime].Now.AddDays(90)

Saturday, June 04, 2005 22:37:35


MSH>

No comments: