
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] formatting a date string
On Mon, 24 Sep 2001, Corey Gilmore wrote:
CG>>Whats the best way to format a date string (from a [data] query)?
CG>>The string would be similar to 20010622
CG>>The time tag only works with the current time...
Here's what I use at midnight every night to change my order numbers to
reflect yymmddseq
I hope that this will help!
perl -e '($d,$m,$y)=(localtime)[3,4,5]; printf
"%s%02d%02d%02d%02d","#COUNTER-1.0\n",$y-100,$m+1,$d,"00";' >
/home/interch/catalogs/diaperstore/etc/order.number
(all on one line)
-= Jim =-
----------------------------------------------------------------
Jim's Linux-Operated Underground Bomb Shelter
Tagline for Wednesday, September 26, 2001 at 09:15 AM:
MACINTOSH - Most Apps Crash, If Not, Then Operating System Hangs
----------------------------------------------------------------
This Linux System has been up 39 hours
My web page: http://www.idk-enterprises.com
----------------------------------------------------------------
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users