Skip to content

Automatically convert DateTime to julian time as needed #90

Open
@LilithHafner

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions