Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dunkerley committed Dec 24, 2018
1 parent 2403337 commit 43c112c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
Binary file modified AlteryxAbacus.dll
Binary file not shown.
15 changes: 10 additions & 5 deletions DateUtils.Test/ToDateTime.yxmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<AlteryxDocument yxmdVer="10.5">
<AlteryxDocument yxmdVer="2018.4">
<Nodes>
<Node ToolID="1">
<GuiSettings Plugin="AlteryxBasePluginsGui.TextInput.TextInput">
Expand Down Expand Up @@ -46,14 +46,15 @@
<Properties>
<Configuration>
<FormulaFields>
<FormulaField field="Actual" type="DateTime" size="19" expression="todatetime([Input])" />
<FormulaField field="Actual Text" type="V_WString" size="64" expression="todatetime([Input])" />
<FormulaField expression="todatetime([Input])" field="Actual" size="19" type="DateTime" />
<FormulaField expression="todatetime([Input])" field="Actual Text" size="64" type="V_WString" />
</FormulaFields>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>Actual=todatetime([Input])
Actual Text=todatetime([Input])</DefaultAnnotationText>
<DefaultAnnotationText><![CDATA[Actual = todatetime([Input])
Actual Text = todatetime([Input])
]]></DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
Expand Down Expand Up @@ -215,6 +216,10 @@ Actual Text=todatetime([Input])</DefaultAnnotationText>
<Company />
<Copyright />
<DescriptionLink actual="" displayed="" />
<Example>
<Description />
<File />
</Example>
</MetaInfo>
<Events>
<Enabled value="True" />
Expand Down
8 changes: 4 additions & 4 deletions DateUtils.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@
<Formula>IIF(LENGTH(P1) = 19, P1, IIF(LENGTH(P1) = 10, P1 + ' 00:00:00', NULL()))</Formula>
</Function>
<Function>
<Name>TODATETIME</Name>
<Name>TOTIME</Name>
<NumParams variable="false">1</NumParams>
<Category>Date</Category>
<InsertText>TODATETIME(Date)</InsertText>
<Description>Appends midnight to a date and returns a datetime</Description>
<Formula>IIF(LENGTH(P1) = 19, RIGHT(P1,8), IIF(LENGTH(P1) = 10, '00:00:00', NULL()))</Formula>
<InsertText>TOTIME(Date)</InsertText>
<Description>Extracts Time from a DateTime or Date</Description>
<Formula>IIF(LENGTH(P1) = 19, RIGHT(P1,8), IIF(LENGTH(P1) = 10, '00:00:00', IIF(LENGTH(P1) = 8, P1, NULL())))</Formula>
</Function>

<Function>
Expand Down

0 comments on commit 43c112c

Please sign in to comment.