[
https://issues.apache.org/jira/browse/NIFI-7230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541061#comment-17541061
]
ASF subversion and git services commented on NIFI-7230:
-------------------------------------------------------
Commit a4797327fc36ce9a1bc151a1e3edfb366e21ce59 in nifi's branch
refs/heads/main from Lehel Boér
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a4797327fc ]
NIFI-7230: Created toInstant(), formatInstant(), toNanos() and toMicros()
expression language functions.
This closes #5888.
Signed-off-by: Tamas Palfy <[email protected]>
> Improve EL to support microseconds/nanoseconds precision
> --------------------------------------------------------
>
> Key: NIFI-7230
> URL: https://issues.apache.org/jira/browse/NIFI-7230
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Pierre Villard
> Assignee: Lehel Boér
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Using the EL, there is no way to convert a date like "2020-02-26
> 20:23:53.439134" into its numerical representation (timestamp with
> microsecond/nanosecond precision).
> At the moment, if trying to do:
>
> {code:java}
> ${ts:toDate("yyyy-MM-dd HH:mm:ss.SSSSSS"):toNumber()}
> {code}
> It'll give a timestamp with milliseconds precision.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)