JuliaTime / NanoDates.jl

Dates with nanosecond resolved days
MIT License
31 stars 3 forks source link

Incorrect parsing of milliseconds from ISO string #45

Closed gryumov closed 1 month ago

gryumov commented 1 month ago
julia> using NanoDates

julia> NanoDate("2024-07-20T13:18:00.000698")
2024-07-20T13:18:00.698
julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 8 on 6 virtual cores
Environment:
  JULIA_HOME = /Users/stanislav/julia/usr/bin
  JULIA_PKG_USE_CLI_GIT = true
  JULIA_EDITOR = atom  -a
  JULIA_NUM_THREADS = 8

(@v1.9) pkg> st NanoDates
Status `~/.julia/environments/v1.9/Project.toml`
  [46f1a544] NanoDates v0.3.3
JeffreySarnoff commented 1 month ago

Huh .. that is unexpected. Thank you.

JeffreySarnoff commented 1 month ago

fixed. merge of new version pending.

On Wed, Aug 7, 2024 at 1:18 PM Stanislav Gryumov @.***> wrote:

julia> using NanoDates

julia> NanoDate("2024-07-20T13:18:00.000698")2024-07-20T13:18:00.698

julia> versioninfo() Julia Version 1.9.4 Commit 8e5136fa297 (2023-11-14 08:46 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: macOS (arm64-apple-darwin22.4.0) CPU: 8 × Apple M1 Pro WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1) Threads: 8 on 6 virtual cores Environment: JULIA_HOME = /Users/stanislav/julia/usr/bin JULIA_PKG_USE_CLI_GIT = true JULIA_EDITOR = atom -a JULIA_NUM_THREADS = 8

@.***) pkg> st NanoDates Status ~/.julia/environments/v1.9/Project.toml [46f1a544] NanoDates v0.3.3

— Reply to this email directly, view it on GitHub https://github.com/JuliaTime/NanoDates.jl/issues/45, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM2VRTXEYBOH6VAAQZKJHDZQJJEXAVCNFSM6AAAAABME22ZUSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TGOJWGQ2TQMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gryumov commented 1 month ago

@JeffreySarnoff, Thank you.