Skip to content

Commit

Permalink
Tighten up vectorized type for conversion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 15, 2014
1 parent 898b20e commit 5b17de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/dates/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ end
# Returns # of julian days since -4713-11-24T12:00:00
datetime2julian(dt::DateTime) = (value(dt) - JULIANEPOCH)/86400000.0

@vectorize_1arg Any unix2datetime
@vectorize_1arg Real unix2datetime
@vectorize_1arg DateTime datetime2unix
@vectorize_1arg Any rata2datetime
@vectorize_1arg Real rata2datetime
@vectorize_1arg DateTime datetime2rata
@vectorize_1arg Any julian2datetime
@vectorize_1arg Real julian2datetime
@vectorize_1arg DateTime datetime2julian

export unix2datetime, datetime2unix, now, today,
Expand Down

0 comments on commit 5b17de8

Please sign in to comment.