From bb16d700ea33146c3b52ea60112e7c17eba325c7 Mon Sep 17 00:00:00 2001 From: Bart Maertens Date: Sat, 25 Feb 2023 10:42:21 +0100 Subject: [PATCH] removed yesterday function from formula plugin and docs. fixes #2464 --- .../ROOT/pages/pipeline/transforms/formula.adoc | 17 ----------------- .../transforms/formula/function/functions.xml | 17 ----------------- 2 files changed, 34 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 41e7bbf9808..0d91009678e 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 @@ -728,23 +728,6 @@ Applications shall support extracting the year from a date beginning in 1900. Th |YEARFRAC("1/1/2012","7/30/2012",3) |0.57808219|Fraction between same dates, using the Actual/365 basis argument. Uses a 365 day basis. |=== -==== YESTERDAY - -|=== -|*description*|Return the serial number of the previous day -|*syntax*|YESTERDAY() -|*returns*|Date -|*semantics*|This returns the previous day's serial number, using current locale. This only returns the date, not the datetime value. -|*constraints*|None -|=== - -*Examples* -|=== -|expression|result|comment -|TODAY()>YESTERDAY() |False|Every date YESTERDAY() changes, but we know it's less than today. -|INT(YESTERDAY)=YESTERDAY() |True|YESTERDAY() returns an integer. WARNING: this test is allowed to fail if the locale transitions through midnight while computing this test; because YESTERDAY() is referenced twice, in some implementations this would result in a race condition) This is incredibly unlikely to occur in practice. -|=== - === Financial ==== PMT 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 ee3d51d1f05..d46d9242774 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 @@ -3182,23 +3182,6 @@ System 2 The week containing the first Thursday of the year is the first week - - - - - %Category.DateTime - YESTERDAY - Return the serial number of the previous day - YESTERDAY() - Date - None - This returns the previous day's serial number, using current locale. This only returns the date, not the datetime value. - - TODAY()>YESTERDAY() False 1 Every date YESTERDAY() changes, but we know it's less than today. - INT(YESTERDAY)=YESTERDAY() True 1 YESTERDAY() returns an integer. WARNING: this test is allowed to fail if the locale transitions through midnight while computing this test; because YESTERDAY() is referenced twice, in some implementations this would result in a race condition) This is incredibly unlikely to occur in practice. - - - %Category.DateTime WEEKDAY