Skip to content
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

Automatically convert DateTime to julian time as needed #90

Open
LilithHafner opened this issue Dec 9, 2024 · 0 comments
Open

Automatically convert DateTime to julian time as needed #90

LilithHafner opened this issue Dec 9, 2024 · 0 comments

Comments

@LilithHafner
Copy link
Contributor

using Dates
using AstroLib
sunpos(now())

currently throws ERROR: MethodError: no method matching sunpos(::DateTime). Defining sunpos(dt::DateTime) = Dates.datetime2julian(dt) would implement this. This could be defined in a package extension with Dates, but AstroLib already has a full dependency on Dates so there's no need for that.

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

No branches or pull requests

1 participant