Exemple #1
0
 /// <summary>
 /// Initialises a new instance of the TimeConverter class for a relative time specification.
 /// </summary>
 /// <param name="relKind">Kind of relative time.</param>
 /// <param name="upperCase">A value indicating whether the first letter is transformed to upper case.</param>
 public TimeConverter(RelativeTimeKind relKind, bool upperCase)
 {
     this.relKind   = relKind;
     this.upperCase = upperCase;
 }
Exemple #2
0
 /// <summary>
 /// Initialises a new instance of the TimeConverter class for an absolute time specification.
 /// </summary>
 /// <param name="details">Details to include in the formatted string.</param>
 public TimeConverter(TxTime details)
 {
     this.relKind = RelativeTimeKind.None;
     this.details = details;
 }