in reply to Re: Re: Re: time as number
in thread time as number

But surely you've forced scalar context on it there by making it a string. What happens if you just do "print localtime"?

You would end up sorting by second first etc... And reversing it doesn't help. Don't forget that localtime() returns

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time +);
in list context.

You can just do it with time and local it, again, later when you need your human-readable format.

Yup. That works much better. ;-) Although personally I find that YYYYMMDDHHMMSS can be a quite useful representation of time.

---
demerphq