1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: remove deprecated time.days_from_civil/1

This commit is contained in:
Delyan Angelov 2023-07-25 11:20:41 +03:00
parent a421e485fc
commit 44ed42ce06
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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