# DateTime: high resolution treatment of time with Julia

**URL:** https://discourse.julialang.org/t/datetime-high-resolution-treatment-of-time-with-julia/9302
**Category:** General Usage
**Tags:** dates
**Created:** [February 24, 2018, 7:32pm UTC](https://discourse.julialang.org/t/datetime-high-resolution-treatment-of-time-with-julia/9302 "2018-02-24T19:32:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Steven\_Varga](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steven_varga/32/3529_2.png) [@Steven\_Varga](https://discourse.julialang.org/u/Steven_Varga)
#### Post date: [February 24, 2018, 7:32pm UTC](https://discourse.julialang.org/t/datetime-high-resolution-treatment-of-time-with-julia/9302/1 "2018-02-24T19:32:52Z")

</div>

For some reasons I fail to use Datetime correctly, can someone point out what I am doing wrong?

C++11 clock provides a time\_point, representation (short,long, float, … ) with duration from a given epoch with some properties such es leap seconds,years etc…  
I am looking for similar treatment, and wondering if it is possible to have now{Nanoseconds}( ) returning a high resolution event from a given Epoch?

```julia
# using POSIX TIME
T = unix2datetime(0) + Microsecond(123456)
T.instant
Base.Dates.UTInstant{Base.Dates.Millisecond}(62135683200000 milliseconds)

# using native call: now() 
T = now() + Nanoseconds(123456)
Base.Dates.UTInstant{Base.Dates.Millisecond}(63655165713147 milliseconds)

```

Where did my Microseconds go?
