Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: YYYYMMDD date format

From: mat:eurogamer at: 14-Nov-2000 14:31

Heya johnkenyon, juic> Hi, juic> now/month returns 1 not 01 for month in Jan so .. juic> nowdate: rejoin [ now/year either now/month < 10 [ "0" ] [ "" ] now/month juic> now/day ] Mmmm, that's interesting. I bet you could use that to make a VASTLY more elegant solution to my rather disgusting hack to generate some serial numbers with padded zeros. How could you extend that for a 3 digit issue? IE 0-9 10-99 100-999 I'd show you how I did it but it's really quite embarrassing ;) The only thing that really annoys me in rebol is simple high level string handling really. The Amigas Arexx had such easy ways to do this sort of thing - in fact so did BASIC even. Tell you something else I'd give my left one for, a straight port of the Arexx parse command. I don't think I'll *ever* understand Rebols :( -- Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee http://www.eurogamer.net | http://www.eurogamer-network.com