[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=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=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=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)
[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=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)