timex v2.1.0 Timex.Calendar.Julian
This module contains functions for working with dates in the Julian calendar.
Summary
Functions
Returns the day of the week, starting with 0 for Sunday, or 1 for Monday
Same as day_of_week/1, except takes year/month/day as distinct arguments
Same as julian_date/1, except takes an Erlang datetime, and returns a more precise Julian date number
Same as julian_date/1, except takes year/month/day as distinct arguments
Same as julian_date/1, except takes year/month/day/hour/minute/second as distinct arguments
Functions
Specs
day_of_week(Timex.Types.date, :sun | :mon) :: Timex.Types.weekday
Returns the day of the week, starting with 0 for Sunday, or 1 for Monday
Specs
day_of_week(Timex.Types.year, Timex.Types.month, Timex.Types.day, :sun | :mon) :: Timex.Types.weekday
Same as day_of_week/1, except takes year/month/day as distinct arguments
Specs
julian_date(Timex.Types.datetime) :: float
julian_date(Timex.Types.date) :: float
Same as julian_date/1, except takes an Erlang datetime, and returns a more precise Julian date number
Specs
julian_date(Timex.Types.year, Timex.Types.month, Timex.Types.day) :: float
Same as julian_date/1, except takes year/month/day as distinct arguments