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:
parent
a421e485fc
commit
44ed42ce06
@ -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
|
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.
|
// 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:
|
// A detailed description of the algorithm here is in:
|
||||||
// http://howardhinnant.github.io/date_algorithms.html
|
// http://howardhinnant.github.io/date_algorithms.html
|
||||||
|
Loading…
Reference in New Issue
Block a user