@@ -130,7 +130,7 @@ fn time_from_year(y: f64) -> f64 {
130130/// - [ECMAScript reference][spec]
131131///
132132/// [spec]: https://tc39.es/ecma262/#sec-yearfromtime
133- pub ( super ) fn year_from_time ( t : f64 ) -> i32 {
133+ pub ( crate ) fn year_from_time ( t : f64 ) -> i32 {
134134 const MS_PER_AVERAGE_YEAR : f64 = 12.0 * 30.436_875 * MS_PER_DAY ;
135135
136136 // 1. Return the largest integral Number y (closest to +∞) such that TimeFromYear(y) ≤ t.
@@ -169,7 +169,7 @@ fn in_leap_year(t: f64) -> u16 {
169169/// - [ECMAScript reference][spec]
170170///
171171/// [spec]: https://tc39.es/ecma262/#sec-monthfromtime
172- pub ( super ) fn month_from_time ( t : f64 ) -> u8 {
172+ pub ( crate ) fn month_from_time ( t : f64 ) -> u8 {
173173 // 1. Let inLeapYear be InLeapYear(t).
174174 let in_leap_year = in_leap_year ( t) ;
175175
@@ -211,7 +211,7 @@ pub(super) fn month_from_time(t: f64) -> u8 {
211211/// - [ECMAScript reference][spec]
212212///
213213/// [spec]: https://tc39.es/ecma262/#sec-datefromtime
214- pub ( super ) fn date_from_time ( t : f64 ) -> u8 {
214+ pub ( crate ) fn date_from_time ( t : f64 ) -> u8 {
215215 // 1. Let inLeapYear be InLeapYear(t).
216216 let in_leap_year = in_leap_year ( t) ;
217217
@@ -268,7 +268,7 @@ pub(super) fn week_day(t: f64) -> u8 {
268268/// - [ECMAScript reference][spec]
269269///
270270/// [spec]: https://tc39.es/ecma262/#sec-hourfromtime
271- pub ( super ) fn hour_from_time ( t : f64 ) -> u8 {
271+ pub ( crate ) fn hour_from_time ( t : f64 ) -> u8 {
272272 // 1. Return 𝔽(floor(ℝ(t / msPerHour)) modulo HoursPerDay).
273273 ( ( t / MS_PER_HOUR ) . floor ( ) ) . rem_euclid ( HOURS_PER_DAY ) as u8
274274}
@@ -279,7 +279,7 @@ pub(super) fn hour_from_time(t: f64) -> u8 {
279279/// - [ECMAScript reference][spec]
280280///
281281/// [spec]: https://tc39.es/ecma262/#sec-minfromtime
282- pub ( super ) fn min_from_time ( t : f64 ) -> u8 {
282+ pub ( crate ) fn min_from_time ( t : f64 ) -> u8 {
283283 // 1. Return 𝔽(floor(ℝ(t / msPerMinute)) modulo MinutesPerHour).
284284 ( ( t / MS_PER_MINUTE ) . floor ( ) ) . rem_euclid ( MINUTES_PER_HOUR ) as u8
285285}
@@ -290,7 +290,7 @@ pub(super) fn min_from_time(t: f64) -> u8 {
290290/// - [ECMAScript reference][spec]
291291///
292292/// [spec]: https://tc39.es/ecma262/#sec-secfromtime
293- pub ( super ) fn sec_from_time ( t : f64 ) -> u8 {
293+ pub ( crate ) fn sec_from_time ( t : f64 ) -> u8 {
294294 // 1. Return 𝔽(floor(ℝ(t / msPerSecond)) modulo SecondsPerMinute).
295295 ( ( t / MS_PER_SECOND ) . floor ( ) ) . rem_euclid ( SECONDS_PER_MINUTE ) as u8
296296}
@@ -301,7 +301,7 @@ pub(super) fn sec_from_time(t: f64) -> u8 {
301301/// - [ECMAScript reference][spec]
302302///
303303/// [spec]: https://tc39.es/ecma262/#sec-msfromtime
304- pub ( super ) fn ms_from_time ( t : f64 ) -> u16 {
304+ pub ( crate ) fn ms_from_time ( t : f64 ) -> u16 {
305305 // 1. Return 𝔽(ℝ(t) modulo ℝ(msPerSecond)).
306306 t. rem_euclid ( MS_PER_SECOND ) as u16
307307}
0 commit comments