December 2018
Beginner to intermediate
500 pages
12h 10m
English
By default, Julia will use the english locale, meaning that the names of the days and months will be in English. However, we can internationalize our dates by defining additional locales:
julia> spanish_months = ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"]
12-element Array{String,1} # output truncated julia> spanish_days = ["lunes", "martes", "miércoles", "jueves", "viernes", "sábado", "domingo"]
7-element Array{String,1} # output truncated julia> Dates.LOCALES["es"] = Dates.DateLocale(spanish_months, String[], spanish_days, String[])
Dates.DateLocale # output truncated
The Dates.DateLocale function expects four arrays, corresponding to ...
Read now
Unlock full access