You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Jacob Tolar (JIRA)" <ji...@apache.org> on 2016/06/01 22:09:59 UTC

[jira] [Comment Edited] (OOZIE-2551) Feature request: epoch timestamp generation

    [ https://issues.apache.org/jira/browse/OOZIE-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311207#comment-15311207 ] 

Jacob Tolar edited comment on OOZIE-2551 at 6/1/16 10:09 PM:
-------------------------------------------------------------

I'll supply a patch for this momentarily. 


was (Author: jtolar):
I'll supply a patch for this once momentarily. 

> Feature request: epoch timestamp generation
> -------------------------------------------
>
>                 Key: OOZIE-2551
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2551
>             Project: Oozie
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jacob Tolar
>            Priority: Minor
>
> Currently, Oozie has a coord:formatTime function for formatting time strings. Unfortunately, as this is backed by SimpleDateFormat, there is no way to produce the time in Unix-style epoch. (I.e. seconds or milliseconds since the epoch.)
> Please add a coord:unixTime (or similarly named) function that, given a time string, converts it to either seconds since the epoch or milliseconds since the epoch. Something like:
> {code}
> coord:unixTime(String ts, Boolean millis)
> {code}
> Requested by [~jmartell7]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)