[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] [Fwd: Documentation for str2time]
From: |
Andrew Makhorin |
Subject: |
[Bug-glpk] [Fwd: Documentation for str2time] |
Date: |
Wed, 25 May 2016 01:39:46 +0300 |
-------- Forwarded Message --------
From: Meketon, Marc <address@hidden>
To: address@hidden <address@hidden>
Subject: Documentation for str2time
Date: Tue, 24 May 2016 17:12:38 -0500
Hi,
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.
________________________________________________________________________
This e-mail and any attachments may be confidential or legally
privileged. If you received this message in error or are not the
intended recipient, you should destroy the e-mail message and any
attachments or copies, and you are prohibited from retaining,
distributing, disclosing or using any information contained herein.
Please inform us of the erroneous delivery by return e-mail. Thank you
for your cooperation.
- [Bug-glpk] [Fwd: Documentation for str2time],
Andrew Makhorin <=