On Fri, Sep 23, 2016 at 11:33 AM, Reuben Brooks <[email protected]> wrote:
> Trying to convert a datetime object to unixtime to a string for an api that
> uses unixtime. However, I cannot figure out how to get the result formatted
> in non-scientific notation:
>
>     julia> a = Dates.datetime2unix(now()); string(round(a))
>     "1.474626735e9"
>
>
> What I want is to get:
>
>     julia> str = string(round(a))
>     "1474626535"
>
> I cannot figure out how to specify the format for the Float64.

round(Int, a)

>
>
>

Reply via email to