quinnj / Datetime.jl

A Date and DateTime implementation for Julia; Now deprecated in favor of https://github.com/quinnj/Dates.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Have a function that return the name of the month of given date.

johansigfrids opened this issue · comments

Would it be possible to have a function that return the name of the month of a given date as a string? Example:

monthname(date(1985,6,21)) ==> "June"

A possible addition would be to be able to tell the function to return a three letter truncated version of the name.

Thanks for the suggestion. These have been added in the rewrite I've been working on that's going into Base julia. See JuliaLang/julia#5328 for details. I've added monthname, monthabr, dayname, dayabr, to get the month or day name of a Date/Datetime.

Fixed by ed8123e