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

Warning when importing Dates #14159

Closed
ararslan opened this issue Nov 26, 2015 · 3 comments
Closed

Warning when importing Dates #14159

ararslan opened this issue Nov 26, 2015 · 3 comments
Labels
doc This change adds or pertains to documentation

Comments

@ararslan
Copy link
Member

This is my first time trying to deal with dates in Julia so please forgive my ignorance. Per the 0.4 release documentation,

You could call using Dates to bring all exported functions into Main to be used without the Dates. prefix.

However, in doing that, I get a warning:

julia> using Dates
WARNING: requiring "Dates" in module "Main" did not define a corresponding module.

Is this expected behavior? If so, I would argue that it's a little off-putting for users to get a warning for something explicitly mentioned in the documentation. 😝

Note that I'm currently using the v0.4.0 release, if that makes a difference.

@ararslan
Copy link
Member Author

In case it matters, I just upgraded to the v0.4.1 release and I get the same warning.

@KristofferC
Copy link
Sponsor Member

Should it be Base.Dates?

@ararslan
Copy link
Member Author

@KristofferC: I was actually wondering that a few minutes ago--it appears to do the trick! Though using Dates does work as intended aside from the warning, perhaps the documentation should recommend using Base.Dates instead, as it also works but produces no warnings.

@JeffBezanson JeffBezanson added doc This change adds or pertains to documentation backport pending 0.4 labels Dec 1, 2015
JeffBezanson added a commit that referenced this issue Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

4 participants