Skip to content

Commit

Permalink
Add doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro committed Jan 19, 2025
1 parent e0d6ee3 commit bff964b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Return the units that correspond to a particular period.
# Examples
```julia
```jldoctest
julia> using Dates
julia> unit(Second(15)) == u"s"
true
Expand Down

0 comments on commit bff964b

Please sign in to comment.