timex v3.2.0 Timex.Calendar.Julian View Source

This module contains functions for working with dates in the Julian calendar.

Link to this section 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

Link to this section Functions

Link to this function day_of_week(arg, weekstart) View Source
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

Link to this function day_of_week(year, month, day, weekstart) View Source
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

Link to this function julian_date(arg1) View Source
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

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

Link to this function julian_date(year, month, day, hour, minute, second) View Source

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