Unix/ls: Difference between revisions
m
→{{header|Phix}}: fix syntax highlight typo - easier to just go ahead and fix it than pass messages back and forth
(→{{header|Pike}}: Adding missing requirement: Sort output) |
Thundergnat (talk | contribs) m (→{{header|Phix}}: fix syntax highlight typo - easier to just go ahead and fix it than pass messages back and forth) |
||
Line 1,139:
===prettier output===
Each element of dir() can be indexed with D_NAME, D_ATTRIBUTES, D_SIZE, D_YEAR, D_MONTH, D_DAY, D_HOUR, D_MINUTE, and D_SECOND, and of course you can easily format these things a bit nicer.
<lang
set_timedate_formats({"hh:mmpm Ddd Mmm ddth YYYY"})
object d = dir(".")
|