Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: Re: Re: Sorting by date

by Anonymous Monk
on Jan 07, 2004 at 05:48 UTC ( #319375=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Sorting by date
in thread Sorting by date

I am sorry to bug you again. I've fiddled with this code a great deal but then I realized I had to change the script just a little bit. Now I'm lost as to how to make the little change I need to get it working again.

The date we separated earlier was month, day, year. I now have to make it seperate by day, month, year (Britian's way of doing dates). I tried changing the line @n[2,0,1]; to @n[1,0,2]; but no changes occured. Is there something else I have to change to make it separate the string into day, month, year instead of month, day, year?

Again, sorry for bothering you. Hopefully there is a quick fix for this.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Sorting by date
by Roger (Parson) on Jan 07, 2004 at 06:26 UTC
    @n[2,1,0] # shuffle from DD MM YY ==> YY MM DD or reverse @n # reverse the order

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319375]
[Corion]: Oooh - I had another devious idea - "Host C" - a C language where every struct is 4K in size. This makes memory and disk access incredibly fast ;)
[Corion]: (because everything is aligned to a memory page and all pages can be read+written directly from disk without buffering)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-04-25 08:55 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (449 votes). Check out past polls.