From 44ed42ce06784ff52385acc2d4c3962b1bfc8e77 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 25 Jul 2023 11:20:41 +0300 Subject: [PATCH] time: remove deprecated time.days_from_civil/1 --- vlib/time/chrono.v | 9 --------- 1 file changed, 9 deletions(-) diff --git a/vlib/time/chrono.v b/vlib/time/chrono.v index 1bdf5a49f4..f7de5ec8d1 100644 --- a/vlib/time/chrono.v +++ b/vlib/time/chrono.v @@ -14,15 +14,6 @@ pub fn days_from_unix_epoch(year int, month int, day int) int { return era * 146097 + day_of_the_era - 719468 } -// days_from_civil - return the number of days since the -// Unix epoch 1970-01-01. -// deprecated: use time.days_from_unix_epoch instead -[deprecated: 'use time.days_from_unix_epoch instead'] -[deprecated_after: '2022-11-23'] -pub fn days_from_civil(year int, month int, day int) int { - return days_from_unix_epoch(year, month, day) -} - // days_from_unix_epoch - return the number of days since the Unix epoch 1970-01-01. // A detailed description of the algorithm here is in: // http://howardhinnant.github.io/date_algorithms.html