Skip to content

Commit 8b02eb4

Browse files
GHTaarnKristofferC
authored andcommitted
Base.get_extension & Dates.format made public (#58108)
`Base.get_extension` and `Dates.format` both appear in the manual and should therefore be `public` symbols according to [51335](#51335 (comment)). They appear in the manual [here](https://docs.julialang.org/en/v1/base/base/#Base.get_extension) and [here](https://docs.julialang.org/en/v1/stdlib/Dates/#Dates.format-Tuple%7BTimeType,%20AbstractString%7D). Please also consider back porting this to version 1.12 (cherry picked from commit 963eaa7)
1 parent f3cd329 commit 8b02eb4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

base/exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ public
11211121
DL_LOAD_PATH,
11221122
load_path,
11231123
active_project,
1124+
get_extension,
11241125

11251126
# Reflection and introspection
11261127
isambiguous,

stdlib/Dates/src/Dates.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,6 @@ export Period, DatePeriod, TimePeriod,
8181
# io.jl
8282
ISODateTimeFormat, ISODateFormat, ISOTimeFormat, DateFormat, RFC1123Format, @dateformat_str
8383

84+
public format
85+
8486
end # module

0 commit comments

Comments
 (0)