public static TimeStringFormatter Define(string prefix, TimeStringFormatter.Qualifier qualifier) { if (string.IsNullOrEmpty(prefix)) { return(TimeStringFormatter.Define(qualifier)); } return(new TimeStringFormatter(TimeStringFormatter.Merge(prefix, qualifier.aDay), TimeStringFormatter.Merge(prefix, qualifier.days), TimeStringFormatter.Merge(prefix, qualifier.aHour), TimeStringFormatter.Merge(prefix, qualifier.hours), TimeStringFormatter.Merge(prefix, qualifier.aMinute), TimeStringFormatter.Merge(prefix, qualifier.minutes), TimeStringFormatter.Merge(prefix, qualifier.aSecond), TimeStringFormatter.Merge(prefix, qualifier.seconds), TimeStringFormatter.Merge(prefix, qualifier.lessThanASecond))); }
public static TimeStringFormatter Define(TimeStringFormatter.Qualifier qualifier, string suffix) { if (string.IsNullOrEmpty(suffix)) { return(TimeStringFormatter.Define(qualifier)); } return(new TimeStringFormatter(TimeStringFormatter.Merge(qualifier.aDay, suffix), TimeStringFormatter.Merge(qualifier.days, suffix), TimeStringFormatter.Merge(qualifier.aHour, suffix), TimeStringFormatter.Merge(qualifier.hours, suffix), TimeStringFormatter.Merge(qualifier.aMinute, suffix), TimeStringFormatter.Merge(qualifier.minutes, suffix), TimeStringFormatter.Merge(qualifier.aSecond, suffix), TimeStringFormatter.Merge(qualifier.seconds, suffix), TimeStringFormatter.Merge(qualifier.lessThanASecond, suffix))); }
public static TimeStringFormatter Define(TimeStringFormatter formatter, string lessThanASecond) { if (!object.ReferenceEquals(lessThanASecond, null)) { formatter = new TimeStringFormatter(formatter.aDay, formatter.days, formatter.aHour, formatter.hours, formatter.aMinute, formatter.minutes, formatter.aSecond, formatter.seconds, TimeStringFormatter.Merge(lessThanASecond)); } return(formatter); }
public static TimeStringFormatter Define(TimeStringFormatter.Qualifier qualifier) { return(new TimeStringFormatter(TimeStringFormatter.Merge(qualifier.aDay), TimeStringFormatter.Merge(qualifier.days), TimeStringFormatter.Merge(qualifier.aHour), TimeStringFormatter.Merge(qualifier.hours), TimeStringFormatter.Merge(qualifier.aMinute), TimeStringFormatter.Merge(qualifier.minutes), TimeStringFormatter.Merge(qualifier.aSecond), TimeStringFormatter.Merge(qualifier.seconds), TimeStringFormatter.Merge(qualifier.lessThanASecond))); }