From 0127a5014e8c88cf04a7574421558eeb562d7cc2 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Thu, 25 Apr 2019 14:54:22 +0200 Subject: [PATCH] Add convenience property converting the grace period to a human-friendly format Refers to #20 --- ATxCommon/Serializables/ServiceConfig.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ATxCommon/Serializables/ServiceConfig.cs b/ATxCommon/Serializables/ServiceConfig.cs index 74a67e1..82aace4 100644 --- a/ATxCommon/Serializables/ServiceConfig.cs +++ b/ATxCommon/Serializables/ServiceConfig.cs @@ -297,6 +297,11 @@ namespace ATxCommon.Serializables [XmlIgnore] public static string ValidatorWarnings { get; set; } + /// <summary> + /// Convenience property converting the grace period to a human-friendly format. + /// </summary> + [XmlIgnore] + public string HumanGracePeriod => TimeUtils.DaysToHuman(GracePeriod, false); #endregion -- GitLab