예제 #1
0
 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)));
 }
예제 #2
0
 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)));
 }
예제 #3
0
 public static TimeStringFormatter Define(string prefix, TimeStringFormatter.Qualifier qualifier, string suffix, string lessThanASecond)
 {
     return(TimeStringFormatter.Define(TimeStringFormatter.Define(prefix, qualifier, suffix), lessThanASecond));
 }