Skip to content

Commit 4158640

Browse files
authored
Document Float64 return type of Base.time (#49519)
1 parent cc7fec7 commit 4158640

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/libc.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ end
235235
# system date in seconds
236236

237237
"""
238-
time(t::TmStruct)
238+
time(t::TmStruct) -> Float64
239239
240240
Converts a `TmStruct` struct to a number of seconds since the epoch.
241241
"""
242242
time(tm::TmStruct) = Float64(ccall(:mktime, Int, (Ref{TmStruct},), tm))
243243

244244
"""
245-
time()
245+
time() -> Float64
246246
247247
Get the system time in seconds since the epoch, with fairly high (typically, microsecond) resolution.
248248
"""

0 commit comments

Comments
 (0)