diff options
| author | Joe Carstairs <me@joeac.net> | 2026-01-17 07:50:42 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-01-17 12:14:24 +0000 |
| commit | 76ba747912a391d235a9c4456e1d813dee9712f3 (patch) | |
| tree | 0534774dca487ca02e6fa49021ef4d1fa3ab017f /schist_core | |
| parent | 70b326ddbe47fbec3d6516fa223ecde41988a5d2 (diff) | |
Publicise DateUtc::first_day_in_month and
DateUtc::first_day_in_next_month
Diffstat (limited to 'schist_core')
| -rw-r--r-- | schist_core/schist_models/src/date_utc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/schist_core/schist_models/src/date_utc.rs b/schist_core/schist_models/src/date_utc.rs index 18a894b..927644c 100644 --- a/schist_core/schist_models/src/date_utc.rs +++ b/schist_core/schist_models/src/date_utc.rs @@ -105,7 +105,7 @@ impl DateUtc { return true; } - fn first_day_in_next_month(&self) -> Self { + pub fn first_day_in_next_month(&self) -> Self { let month = self.month(); let mut curr_guess: Option<DateTime<Utc>> = None; let mut curr_add = 1; @@ -120,7 +120,7 @@ impl DateUtc { }; } - fn first_day_in_month(&self) -> Self { + pub fn first_day_in_month(&self) -> Self { let month = self.month(); let mut prev_guess = self.clone(); let mut curr_guess = self.clone(); |
