Welcome to Wick's Weblog. Here you will find much randomness from food, sports and maybe some technology thrown in there. If you have any ideas you want me to talk about or ask about, just contact me. I'll be glad to do some research.

A Nerdy Tip of the Day

Monday, September 22nd, 2008

After reading the man pages for date I could find a way to get yesterday’s date. Well after some handy ole google-ing I stumbled upon this.

This is just in case you wanted to know…A script to find yesterday’s date in Solaris with a little perl tidbit.

perl -e ‘@T=localtime(time-86400);printf(“%02d-%02d-%02d”,$T[5]+1900,$T[4]+1,$T[3])’
Will print out YYYY-DD-MM

Mainly I’m blogging this so I will know where to find this information if I need it at a later date.