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

Document Integer methods for monthname, monthabbr, dayname, and dayabbr #31761

Closed
CameronBieganek opened this issue Apr 18, 2019 · 2 comments
Closed
Labels
doc This change adds or pertains to documentation good first issue Indicates a good issue for first-time contributors to Julia

Comments

@CameronBieganek
Copy link
Contributor

There are Integer methods for monthname, monthabbr, dayname, and dayabbr, but there is no documentation for them. For example,

julia> methods(monthname)
# 3 methods for generic function "monthname":
[1] monthname(month::Integer; locale) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Dates/src/query.jl:235
[2] monthname(month::Integer, locale::Dates.DateLocale) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Dates/src/query.jl:233
[3] monthname(dt::TimeType; locale) in Dates at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Dates/src/query.jl:250

julia> monthname.(1:12)
12-element Array{String,1}:
 "January"  
 "February" 
 "March"    
 "April"    
 "May"      
 "June"     
 "July"     
 "August"   
 "September"
 "October"  
 "November" 
 "December"

These are useful methods, and it would be helpful if they were documented.

@fredrikekre fredrikekre added doc This change adds or pertains to documentation good first issue Indicates a good issue for first-time contributors to Julia labels Apr 18, 2019
@jch8ri
Copy link
Contributor

jch8ri commented Apr 18, 2019

And consequently for the days as well??

@Moelf
Copy link
Sponsor Contributor

Moelf commented Jul 5, 2019

This can be closed

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 good first issue Indicates a good issue for first-time contributors to Julia
Projects
None yet
Development

No branches or pull requests

4 participants