This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 04677aa9a6 removed parsedate from formula functions and docs. fixes 
#2077
     new f67fddf1cc Merge pull request #2234 from bamaer/2077
04677aa9a6 is described below

commit 04677aa9a69e6ef1c6a1df0552348d86bf846ddb
Author: Bart Maertens <[email protected]>
AuthorDate: Sat Feb 4 16:19:20 2023 +0100

    removed parsedate from formula functions and docs. fixes #2077
---
 .../modules/ROOT/pages/pipeline/transforms/formula.adoc  | 16 ----------------
 .../pipeline/transforms/formula/function/functions.xml   | 14 --------------
 2 files changed, 30 deletions(-)

diff --git 
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/formula.adoc 
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/formula.adoc
index 0e124a7a0c..41e7bbf980 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/formula.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/formula.adoc
@@ -537,22 +537,6 @@ Hour=INT(DayFraction*24)
 |NPER([FIELD1]/12, [FIELD2], [FIELD3], [FIELD4], 1) |59.673865|Periods for the 
investment with the above terms
 |===
 
-==== PARSEDATE
-
-|===
-|*description*|Parses a date using a SimpleDateFormat format string
-|*syntax*|PARSEDATE( Text date; Text format; Text locale; Text timezone )
-|*returns*|Date
-|*semantics*|This computes the date based on the provided format, locale, and 
timezone.  If timezone is provided, assumes the date is in UTC and converts the 
date from UTC to the specified timezone.
-|*constraints*|format must be a valid SimpleDateFormat
-|===
-
-*Examples*
-|===
-|expression|result|comment
-|PARSEDATE("2004/12/25 12:56:45.878";"yyyy/MM/dd HH:mm:ss.SSS") |2004-12-25 
12:56:45.878|Simple parse.
-|PARSEDATE("2004-12-25"; "yyyy-MM-dd"; "en"; "MDT" ) |2004-12-24 
17:00:00.000|2004/12/25 00:00:00 UTC is 2004-12-24 17:00:00 MDT
-|===
 
 ==== PREVWEEKDAY
 
diff --git 
a/plugins/transforms/formula/src/main/resources/org/apache/hop/pipeline/transforms/formula/function/functions.xml
 
b/plugins/transforms/formula/src/main/resources/org/apache/hop/pipeline/transforms/formula/function/functions.xml
index e97fb28007..ee3d51d1f0 100644
--- 
a/plugins/transforms/formula/src/main/resources/org/apache/hop/pipeline/transforms/formula/function/functions.xml
+++ 
b/plugins/transforms/formula/src/main/resources/org/apache/hop/pipeline/transforms/formula/function/functions.xml
@@ -3123,20 +3123,6 @@ System 2    The week containing the first Thursday of 
the year is the first week
   </function>
 
   <!-- Date/Time : this list is complete -->
-  <function>
-    <category>%Category.DateTime</category>
-    <name>PARSEDATE</name>
-    <description>Parses a date using a SimpleDateFormat format 
string</description>
-    <syntax>PARSEDATE( Text date, Text format, Text locale, Text timezone 
)</syntax>
-    <returns>Date</returns>
-    <constraints>format must be a valid SimpleDateFormat</constraints>
-    <semantics>This computes the date based on the provided format, locale, 
and timezone.  If timezone is provided, assumes the date is in UTC and converts 
the date from UTC to the specified timezone.</semantics>
-    <examples>
-      <example><expression>PARSEDATE("2004/12/25 12:56:45.878","yyyy/MM/dd 
HH:mm:ss.SSS")</expression> <result>2004-12-25 12:56:45.878</result> 
<level>2</level> <comment>Simple parse.</comment></example>
-      <example><expression>PARSEDATE("2004-12-25", "yyyy-MM-dd", "en", "MDT" 
)</expression> <result>2004-12-24 17:00:00.000</result> <level>2</level> 
<comment>2004/12/25 00:00:00 UTC is 2004-12-24 17:00:00 MDT</comment></example>
-    </examples>
-  </function>
-
   <function>
     <category>%Category.DateTime</category>
     <name>DATETIMEVALUE</name>

Reply via email to