From 43c112c1da6eee5db020eafef4c9fd7a565604c0 Mon Sep 17 00:00:00 2001 From: James Dunkerley Date: Mon, 24 Dec 2018 22:43:07 +0000 Subject: [PATCH] Fixes --- AlteryxAbacus.dll | Bin 505344 -> 505344 bytes DateUtils.Test/ToDateTime.yxmd | 15 ++++++++++----- DateUtils.xml | 8 ++++---- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/AlteryxAbacus.dll b/AlteryxAbacus.dll index b8d4d4fd53bf5e699f78b41b02a86e776dae2c3f..a061cfdddc6b5656571f81c5c41fab17504401d8 100644 GIT binary patch delta 152 zcmZp8BiHaoZi4_LlTm!L5M#R#BM37AF*6Xe05R)!Ax5^Qek-GR#TW)4U;^S0AU<-C zjp4{vHjoelOpXW076D?3Lu?EZ+hB6j&rM*H;)JQ;o8CB)Eq!~$M79DIftk$(#oIFK Y{8nxFH^VP~@$>c@TiK@H*vhT}0Lug?GXMYp delta 152 zcmZp8BiHaoZi4_LQ*v~(5M#R#BM37AF*6Xe05R)!Ax5^QeyikY#TW)4U;^S0AU<-C zjp4{vHjoelOpXW076D?3Lu?EZ+hB6j&rM*H;)JQ;o8CB)Eq!~$M79DIfey8~wu-xw YoTskp)mNJ~J*WM~R<`Lkwz6vg0Pqzhwg3PC diff --git a/DateUtils.Test/ToDateTime.yxmd b/DateUtils.Test/ToDateTime.yxmd index d7c41fa..cfb5ea0 100644 --- a/DateUtils.Test/ToDateTime.yxmd +++ b/DateUtils.Test/ToDateTime.yxmd @@ -1,5 +1,5 @@ - + @@ -46,14 +46,15 @@ - - + + - Actual=todatetime([Input]) -Actual Text=todatetime([Input]) + @@ -215,6 +216,10 @@ Actual Text=todatetime([Input]) + + + + diff --git a/DateUtils.xml b/DateUtils.xml index 6e5961e..9d849e1 100644 --- a/DateUtils.xml +++ b/DateUtils.xml @@ -137,12 +137,12 @@ IIF(LENGTH(P1) = 19, P1, IIF(LENGTH(P1) = 10, P1 + ' 00:00:00', NULL())) - TODATETIME + TOTIME 1 Date - TODATETIME(Date) - Appends midnight to a date and returns a datetime - IIF(LENGTH(P1) = 19, RIGHT(P1,8), IIF(LENGTH(P1) = 10, '00:00:00', NULL())) + TOTIME(Date) + Extracts Time from a DateTime or Date + IIF(LENGTH(P1) = 19, RIGHT(P1,8), IIF(LENGTH(P1) = 10, '00:00:00', IIF(LENGTH(P1) = 8, P1, NULL())))