Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Allow fractions of a second? #24

Open
cormullion opened this issue Oct 13, 2014 · 2 comments
Open

Allow fractions of a second? #24

cormullion opened this issue Oct 13, 2014 · 2 comments

Comments

@cormullion
Copy link

Is it possible to do this:

DateTime(2013,7,1,12,30,59.1)

i.e. to provide seconds as a float?

I think you can only do this at the moment:

DateTime(2013,7,1,12,30,59,1)

to give

2013-07-01T12:30:59.001

(I'm still using v0.3...)

@quinnj
Copy link
Owner

quinnj commented Oct 14, 2014

Hmmm, interesting idea. Technically, I think we could do it without colliding with other method definitions.

@cormullion
Copy link
Author

Cool! I think it's quite common for astronomical routines to return 6 items e.g.:

julia> next_new_moon = moon_phase(cal_to_jd(2014,10,14)) |> jd_to_date
(2014,10,23,21,57,33.488731384277344)

Of course it would be possible to return 7 items rather than 6, but 6 seems quite common in similar applications.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants