timex v3.0.1 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

day_of_week(arg, weekstart)

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

day_of_week(year, month, day, weekstart)

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

julian_date(arg1)

Specs

julian_date(Timex.Types.date) :: float
julian_date(Timex.Types.datetime) :: float

Same as julian_date/1, except takes an Erlang datetime, and returns a more precise Julian date number

julian_date(year, month, day)

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

julian_date(year, month, day, hour, minute, second)

Specs

julian_date(Timex.Types.year, Timex.Types.month, Timex.Types.day, Timex.Types.hour, Timex.Types.minute, Timex.Types.second) :: float

Same as julian_date/1, except takes year/month/day/hour/minute/second as distinct arguments