# Float64 Julian Date from AstroTime

**URL:** https://discourse.julialang.org/t/float64-julian-date-from-astrotime/52341
**Category:** Astro/Space
**Created:** [December 24, 2020, 8:16pm UTC](https://discourse.julialang.org/t/float64-julian-date-from-astrotime/52341 "2020-12-24T20:16:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rbl100](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@rbl100](https://discourse.julialang.org/u/rbl100)
#### Post date: [December 24, 2020, 8:16pm UTC](https://discourse.julialang.org/t/float64-julian-date-from-astrotime/52341/1 "2020-12-24T20:16:26Z")

</div>

I can use AstroTime julian(UTCEpoch(2020,12,24,12,0,0.0)) to give me 2.459208e6 days. How do I turn that into a simple float? Float64() gives an error.

I’m sure I’m missing something simple. Thanks in advance.

---

<div class="post-metadata">

### Author: ![helgee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgee/32/2022_2.png) [@helgee](https://discourse.julialang.org/u/helgee)
#### Post date: [December 24, 2020, 8:26pm UTC](https://discourse.julialang.org/t/float64-julian-date-from-astrotime/52341/2 "2020-12-24T20:26:51Z")

</div>

```julia
value(julian(UTCEpoch(2020,12,24,12,0,0.0)))

```

or have a look at [julian\_period](https://juliaastro.github.io/AstroTime.jl/stable/api/epochs/#AstroTime.Epochs.julian_period-Tuple%7BEpoch%7D)
