-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support nanosecond timestamps (from/to) #44
Comments
Ok, I was to fast with my conclusion, it just wasn't clear from the docs, maybe this could be added? It shows something under
Also, there is |
Actually, these methods do not represent the nanoseconds timestamp since epoch, is this correct? The nanosecond UNIX timestamp for |
the methods you want already exist, although we use Integers as Float64s are not resolute enough
see src/conversions.jl for other, similar conversions |
Thanks @JeffreySarnoff. How about adding it to the docs, i.e. |
already in the docs/ here
<https://github.com/JuliaTime/NanoDates.jl/blob/main/docs/src/use/timestamps.md>
for some reason it did regenerate the docs with the improvements -- thanks
for the note
…On Tue, Aug 13, 2024 at 11:23 AM Rino B. ***@***.***> wrote:
Thanks @JeffreySarnoff <https://github.com/JeffreySarnoff>. How about
adding it to the docs, i.e. nanodate2unixnanos and unixnanos2nanodate?
—
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM2VRVROADHJ7CAR72SD33ZRIQFZAVCNFSM6AAAAABKPV2UPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGUZDCNZTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
ok that worked the docs are regenerated
On Tue, Aug 13, 2024 at 11:27 AM Jeffrey Sarnoff ***@***.***>
wrote:
… already in the docs/ here
<https://github.com/JuliaTime/NanoDates.jl/blob/main/docs/src/use/timestamps.md>
for some reason it did regenerate the docs with the improvements -- thanks
for the note
On Tue, Aug 13, 2024 at 11:23 AM Rino B. ***@***.***> wrote:
> Thanks @JeffreySarnoff <https://github.com/JeffreySarnoff>. How about
> adding it to the docs, i.e. nanodate2unixnanos and unixnanos2nanodate?
>
> —
> Reply to this email directly, view it on GitHub
> <#44 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAM2VRVROADHJ7CAR72SD33ZRIQFZAVCNFSM6AAAAABKPV2UPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGUZDCNZTGY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
If I read the docs correctly, there is no support for constructing a
NanoDate
from a UNIX timestamp in nanoseconds, and also no function to convert aNanoDate
to anInt64
representing nanoseconds since epoch.Is this correct? If so, could support for this be added?
The text was updated successfully, but these errors were encountered: