Skip to content

Commit

Permalink
Add aliases for timex formatters/parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Aug 12, 2014
1 parent 35d3925 commit 6da52c3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/timex.ex
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
defmodule Timex do
defmacro __using__(_) do
quote do
alias Timex.DateTime, as: DateTime
alias Timex.Date, as: Date
alias Timex.Date.Convert, as: DateConvert
alias Timex.DateFormat, as: DateFormat
alias Timex.Time, as: Time
alias Timex.TimezoneInfo, as: TimezoneInfo
alias Timex.Timezone, as: Timezone
alias Timex.DateTime
alias Timex.Date
alias Timex.DateFormat
alias Timex.Time
alias Timex.TimezoneInfo
alias Timex.Timezone
alias Timex.Date.Convert, as: DateConvert
alias Timex.DateFormat.Formatters, as: TimexFormatters
alias Timex.Parsers.DateFormat, as: TimexParsers
end
end
end

0 comments on commit 6da52c3

Please sign in to comment.