diff --git a/Cargo.toml b/Cargo.toml index ace907c..0c9032f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Smitty "] edition = "2018" [dependencies] -chrono = { version = "0.4.19", features = ["std", "serde", "clock"], default-features = false } +chrono = { version = "0.4.19", features = ["std", "serde"], default-features = false } serde = { version = "1.0.126", features = ["derive"] } json = "0.12.4" lazy_static = "1.4.0" diff --git a/src/entity.rs b/src/entity.rs index 0124924..e7799be 100755 --- a/src/entity.rs +++ b/src/entity.rs @@ -135,19 +135,6 @@ impl Entity { } None } - - /// The amount of days that the entity was in operations. For animals, this is lifespan. - /// For corporations and other legal entities it's the time between formation and dissolution. - pub fn timespan(&self) -> Option { - let start = self.start_time()?; - let end = self.end_time().unwrap_or_else(Utc::now); - let days = end.signed_duration_since(start).num_days(); - if days < 0 { - None - } else { - Some(days as u64) - } - } } fn get_json_string(mut json: json::JsonValue) -> String {