[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] [Fwd: Documentation for str2time]

From: Andrew Makhorin
Subject: Re: [Bug-glpk] [Fwd: Documentation for str2time]
Date: Thu, 26 May 2016 12:10:02 +0300

> I needed to convert a string “20251201” to the date 01-Dec-2025.  The
> below works:
> param d := str2time("20251201","%Y%m%d");
> display time2str(d,"%F");
> BUT the %Y is undocumented.  The documentation (version 4.58, page 57)
> for str2time refers to %y, and is explicit that this is for a year
> without a century, but there is no mention of %Y in str2time format
> specifiers or how to convert strings that have full-year (century
> included).
> I recommend that on the next release the documentation adds the %Y
> specifier.

Thank you for your suggestion.

Description of %Y specifier is just missing for unknown reason. There
should be the following statement:

%Y The year as a decimal number, using the Gregorian calendar.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]