Using Python for blogging
hwlgw at hotmail.com
Sun Oct 20 11:01:35 CEST 2002
> [Bengt Richter]
> ... change your date representation to yymmdd or yy-mm-dd to get sensible
> sorting of file listings outside the directory listing utility (e.g. if
> you pipe the output of a whole dir tree through a filter and want it sorted).
> E.g., you can tell windows to use alternate date representation, and it will
> show up that way most everywhere you see a date in a windows app.
Ah! Good idea. ``dir /?`` shows help and can tell you that ``dir /OD
/TC`` lists by creation date and ``dir /OD /TC`` by last written date.
Learn something every day!
And with yymmdd instead of ddmmyy (like is normal in europe) you can
also list by name and get the chronological order if you have files
from more than one month or even year in a directory(tree). Thanks!
A computer owner who can read the manual.
More information about the Python-list