[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15121589#comment-15121589 ] Mark Payne commented on NIFI-1078: -- [~JPercivall] - looks good! I noticed a typo or two that i addressed, and then I added a couple more examples of using the 'now' function and pushed. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen >Assignee: Joseph Percivall > Fix For: 0.5.0 > > Attachments: 0001-NIFI-1078-Fixing-the-now-EL-documentation.2.patch, > 0001-NIFI-1078-Fixing-the-now-EL-documentation.patch > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15121586#comment-15121586 ] ASF subversion and git services commented on NIFI-1078: --- Commit 8a9a44c102f6e60e826fa85115ce31084eab4f17 in nifi's branch refs/heads/master from [~markap14] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=8a9a44c ] NIFI-1078: Fixed typo in docs and added additional examples > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen >Assignee: Joseph Percivall > Fix For: 0.5.0 > > Attachments: 0001-NIFI-1078-Fixing-the-now-EL-documentation.2.patch, > 0001-NIFI-1078-Fixing-the-now-EL-documentation.patch > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15121585#comment-15121585 ] ASF subversion and git services commented on NIFI-1078: --- Commit 23364f554c4b5b4de407ef6e96ad45ec41469cd8 in nifi's branch refs/heads/master from [~JPercivall] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=23364f5 ] NIFI-1078 Fixing the 'now' EL documentation Signed-off-by: Mark Payne > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen >Assignee: Joseph Percivall > Fix For: 0.5.0 > > Attachments: 0001-NIFI-1078-Fixing-the-now-EL-documentation.2.patch, > 0001-NIFI-1078-Fixing-the-now-EL-documentation.patch > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15117907#comment-15117907 ] Joseph Percivall commented on NIFI-1078: After working with this a bit I ran into a bit of confusion because there is a fourth data type (Date) that gets evaluated and used. The "toDate" and "now" functions both return date objects. Then if the value of full expression is a date then it will be converted to a String with the format "E MMM dd HH:mm:ss z " I will add a bit more documentation reflecting what I found. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen >Assignee: Joseph Percivall > Fix For: 0.5.0 > > Attachments: 0001-NIFI-1078-Fixing-the-now-EL-documentation.patch > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15117707#comment-15117707 ] Mark Payne commented on NIFI-1078: -- [~JPercivall] - can we update the verbage in the documentation to also explain what that date/time format means? I.e., " :: " - while the format string needs to be understood to use the format() function, it's quite possible that those who just want to use the now() function do not know off the top of their head what the funky string means :) It would also be helpful to provide an example in the 'examples' section that does provide a numeric equivalent. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen >Assignee: Joseph Percivall > Fix For: 0.5.0 > > Attachments: 0001-NIFI-1078-Fixing-the-now-EL-documentation.patch > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055004#comment-15055004 ] Mark Payne commented on NIFI-1078: -- I agree that this is a typo in the docs. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen > Fix For: 0.5.0 > > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984547#comment-14984547 ] Randy Gelhausen commented on NIFI-1078: --- [~joewitt] did you mean Mark Payne? I tried but couldn't find his JIRA id. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977662#comment-14977662 ] Joseph Witt commented on NIFI-1078: --- In my view the bug is in the docs. The return of 'now' based on your original string output appears to be a date (not a number as the docs state). Would like to hear Mark's view. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977656#comment-14977656 ] Randy Gelhausen commented on NIFI-1078: --- {now():toNumber()} worked: ts:1446003503325 I'm not sure if this is a doc bug or a mistake in the now() function. > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (NIFI-1078) ${now()} returns string dates instead of a number of milliseconds
[ https://issues.apache.org/jira/browse/NIFI-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977635#comment-14977635 ] Joseph Witt commented on NIFI-1078: --- Ultimately you're seeing string representation though that output suggests it is a Date object and not a number. Mark? Try ${now():toNumber()} > ${now()} returns string dates instead of a number of milliseconds > - > > Key: NIFI-1078 > URL: https://issues.apache.org/jira/browse/NIFI-1078 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework >Affects Versions: 0.4.0 >Reporter: Randy Gelhausen > > Per the docs: The now function returns the current date and time as the > number of milliseconds since Midnight GMT on January 1, 1970. > However, when using ${now()} in expression language, the result is: "Tue Oct > 27 22:12:21 EDT 2015" -- This message was sent by Atlassian JIRA (v6.3.4#6332)