@@ -30,7 +30,7 @@ defmodule Calendar.ISO do
3030 @ microseconds_per_second 1_000_000
3131
3232 @ doc """
33- Returns the normalized Rata Die representation of the specified date.
33+ Returns the `t:Calendar.iso_days` format of the specified date.
3434
3535 ## Examples
3636
@@ -51,7 +51,7 @@ defmodule Calendar.ISO do
5151 end
5252
5353 @ doc """
54- Converts a Rata Die to the datetime format specified by this calendar.
54+ Converts the `t:Calendar.iso_days` format to the datetime format specified by this calendar.
5555
5656 ## Examples
5757
@@ -114,7 +114,7 @@ defmodule Calendar.ISO do
114114 { hours , minutes , seconds , { microseconds , 6 } }
115115 end
116116
117- # Converts a year, month, day in only a count of days since the Rata Die epoch .
117+ # Converts year, month, day to count of days since 0000-01-01 .
118118 @ doc false
119119 def date_to_iso_days_days ( 0 , 1 , 1 ) do
120120 0
@@ -123,11 +123,10 @@ defmodule Calendar.ISO do
123123 719528
124124 end
125125 def date_to_iso_days_days ( year , month , day ) do
126- # Rata Die starts at year 1, rather than at year 0.
127126 :calendar . date_to_gregorian_days ( year , month , day )
128127 end
129128
130- # Calculates {year, month, day} from the count of days since the Rata Die epoch .
129+ # Converts count of days since 0000-01-01 to {year, month, day} tuple .
131130 @ doc false
132131 def date_from_iso_days_days ( days ) do
133132 :calendar . gregorian_days_to_date ( days )
0 commit comments