[WM] WebMake.Time format

Duncan Cameron dcameron.bcs.org.uk
Sat Jan 11 09:43:03 GMT 2003


On 2003-01-09 Warren Post wrote:
>I am using the WebMake.Time magic variable in my site's footer as a time 
>stamp. The documentation says that WebMake.Time outputs in the format 
>Wed Jan 9 15:23:01 2003, but what I get is missing the day of the month 
>(Wed Jan 15:23:01 2003). Perhaps this is an OS issue rather than a 
>WebMake issue (I'm running this on Windows, not *nix) but in any case is 
>there a way I can have greater control over the output format and regain 
>the day of the week?
>-- 
It looks like WebMake is using a 'non-portable' argument when
calling the POSIX strftime() function.  See line 1485 of
main.pm.  If you change the %e to %d then you'll get the
day number, but as two digits, so day numbers 1 to 9 will
be displayed as 01 to 09 (I think).
This is probably an OS issue with the %e argument not
working on Windows, at least not on W98.

See http://www.opengroup.org/onlinepubs/7908799/xsh/strftime.html
for the meaning of the arguments to strftime().

Regards,
Duncan Cameron









More information about the Webmake-talk mailing list