[REBOL] RES: Re: YYYYMMDD date format
From: carlos:lorenz at: 14-Nov-2000 15:46
Great! a liked it too
Thanks
Carlos Lorenz
-----Mensagem original-----
De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de
[johnkenyon--uk--ibm--com]
Enviada em: Terça-feira, 14 de Novembro de 2000 14:11
Para: [rebol-list--rebol--com]
Assunto: [REBOL] Re: YYYYMMDD date format
Mat,
Probably no neater - but here goes ...
pad: func [ value (integer!) figures (integer!) ] [
out: copy ""
loop figures - length? to-string value [ append out "0" ]
append out value
]
>I'd show you how I did it but it's really quite embarrassing ;)
I'm not much further ahead than you are :)
>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
>:(
Arexx parse was nice but rebol parse is good fun. Just keep trying the
examples and you never know...
Cheers, John