private bool CompareFullDates(WorldDate currentDate) { return (ValidateParametres() && Start.ToSeconds() <= currentDate.ToSeconds() && Finish.ToSeconds() >= currentDate.ToSeconds()); }
public override bool Equals(object obj) { bool result = obj is WorldDate; if (result) { WorldDate other = obj as WorldDate; result = this.ToSeconds() == other.ToSeconds(); } return(result); }