There is an issue with the date/time documentation...
# lucee
g
There is an issue with the date/time documentation. The Lucee Docs state that the mask for minutes is
nn/NN
and time markers are
tt/TT
It then goes onto say at the bottom;
The function follows Java date time mask. For details, see the section Date and Time Patterns at
and then provides a link to an Oracle Java docs page. However, the Oracle doc page has "mm" for minutes and
t
doesn't even exist. The Lucee Docs for
parseDateTime()
are the same. The Lucee Docs for
lsParseDateTime()
- don't even show the mask - it just refers to you the Oracle docs. If you use the Oracle Docs as "your" reference - you're code will give you the wrong results; "mm" does NOT give you the minutes- it gives you the month
p
ticket for this from Jira: https://luceeserver.atlassian.net/browse/LDEV-3872 I will update the parseDateTime() format description on that PR
2
g
And once again - I should have checked the issue list first 🙂 Thanks for the confirmation.
👍 1
p
FYI, lsParseDateTime() follows the java mask as per current docs
z
merged
👍 3
g
@pothys-mitrahsoft - Well I wonder if that means we need a ticket so that lsParseDateTime, operates like the other date time functions, then.