|XP is just a number|
strftime reference for Win32by holli (Monsignor)
|on Feb 24, 2005 at 18:30 UTC||Need Help??|
The Posix-module has a very nice function called strftime() that is capable of formatting dates and times to a human readable format.
But ... the manpage is not very descriptive. It tells you nothing about the meanings of the parameters in the format string.
Unix/Linux users can read about them by typing
(thanks blokhead for advising me on that), but Windows users are lost.
Therefore, in the hope it will help somebody*, i post this little script, that can serve both as a reference and as an example.
The parameters %U and %W, are not identical. %U starts counting the Week Of Year at sundays, %W starts counting on mondays.
The %p parameter can be empty, depending on the locale of the system.
*and for my own convenience
Update: corrected typo for %M
Update: corrected typo for %I (thanks bmann)
Update: retitled node from "strftime reference" to "strftime reference for win32"
holli, /regexed monk/