Skip to content

Commit

Permalink
Readd period new functions for compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
jrstrunk committed Jan 6, 2025
1 parent 570b3b6 commit aca1e68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tempo/period.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ import tempo/duration
import tempo/month
import tempo/time

@deprecated("Use `period.from_datetimes` instead")
pub fn new(start start, end end) {
from_datetimes(start:, end:)
}

@deprecated("Use `period.from_naive_datetimes` instead")
pub fn new_naive(start start, end end) {
from_naive_datetimes(start:, end:)
}

/// Creates a new period from the start and end datetimes.
///
/// ## Examples
Expand Down

0 comments on commit aca1e68

Please sign in to comment.