Menu

#199 gawk strftime errors

Gawk
closed
GnuWin
Binaries (396)
5
2012-07-26
2004-12-21
Oblio
No

These do not work:

BEGIN {print strftime("%u")}
BEGIN {print strftime("%V")}

Discussion

  • GnuWin

    GnuWin - 2004-12-21

    Logged In: YES
    user_id=217802

    Can you give some more information:
    1) What error message do you get?
    2) Which version of gawk is this?
    3) What command do you give?
    4) What is the input file for gawk?
    5) What output do you get?

     
  • Oblio

    Oblio - 2004-12-22

    Logged In: YES
    user_id=502887

    v3.1.3; no input file.

    When I enter gawk "BEGIN {print strftime(\"%u\")}", I get
    nothing.

    When I enter gawk "BEGIN {print strftime(\"%V\")}", I get
    nothing.

    When I enter gawk "BEGIN {print strftime(\"%U\")}", I get 51.

    I haven't tested all the parameters, but I guess I could.

     
  • GnuWin

    GnuWin - 2005-05-09

    Logged In: YES
    user_id=217802

    Gawk uses the strftime implementation in Msvcrt, which does
    not recognize %u and %V format; see
    http://msdn.microsoft.com/library/en-
    us/vclib/html/crt_strftime.2c.wcsftime.asp
    This will be changed in the next release.

     
  • GnuWin

    GnuWin - 2007-12-28

    Logged In: YES
    user_id=217802
    Originator: NO

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/

     
  • GnuWin

    GnuWin - 2007-12-28

    Logged In: YES
    user_id=217802
    Originator: NO

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/

     
Auth0 Logo