瀏覽代碼

HPCC-13913 Edits based upon review

Signed-off-by: Jim DeFabia <jamesdefabia@lexisnexis.com>
Jim DeFabia 10 年之前
父節點
當前提交
236dae1078
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 2 1
      docs/ECLStandardLibraryReference/SLR-Mods/FromStringToDate.xml
  2. 3 2
      ecllibrary/std/Date.ecl

+ 2 - 1
docs/ECLStandardLibraryReference/SLR-Mods/FromStringToDate.xml

@@ -38,7 +38,8 @@
           <entry>return</entry>
 
           <entry>The date that was matched in the string. Returns 0 if failed
-          to match.</entry>
+          to match or if the date components match but the result is an
+          invalid date.</entry>
         </row>
       </tbody>
     </tgroup>

+ 3 - 2
ecllibrary/std/Date.ecl

@@ -1,4 +1,4 @@
-/*##############################################################################
+/*##############################################################################
 ## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.  All rights reserved.
 ############################################################################## */
 
@@ -601,7 +601,8 @@ EXPORT Seconds_t SecondsFromDateTimeRec(DateTime_rec datetime, BOOLEAN is_local_
  * @param date_text     The string to be converted.
  * @param format        The format of the input string.
  *                      (See documentation for strftime)
- * @return              The date that was matched in the string.  Returns 0 if failed to match.
+ * @return              The date that was matched in the string.  Returns 0 if failed to match 
+ *                      or if the date components match but the result is an invalid date.
  *
  * Supported characters:
     %B          Full month name