Skip to content

Commit

Permalink
Document Float64 return type of Base.time (#49519)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Apr 28, 2023
1 parent cc7fec7 commit 4158640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/libc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ end
# system date in seconds

"""
time(t::TmStruct)
time(t::TmStruct) -> Float64
Converts a `TmStruct` struct to a number of seconds since the epoch.
"""
time(tm::TmStruct) = Float64(ccall(:mktime, Int, (Ref{TmStruct},), tm))

"""
time()
time() -> Float64
Get the system time in seconds since the epoch, with fairly high (typically, microsecond) resolution.
"""
Expand Down

0 comments on commit 4158640

Please sign in to comment.