Exemple #1
0
 public static ApproxDateTime Now()
 {
     return(new ApproxDateTime
     {
         DateTime = StructuredDateTime.Now()
     });
 }
 public Height(StructuredDateTime when, LengthMeasurement length)
     : this()
 {
     if (when == null)
     {
         throw new ArgumentNullException("when");
     }
     if (length == null)
     {
         throw new ArgumentNullException("length");
     }
     When = when;
     Value = length;
 }
Exemple #3
0
        public Weight(StructuredDateTime when, WeightMeasurement weight)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }
            if (weight == null)
            {
                throw new ArgumentNullException("weight");
            }

            When = when;
            Value = weight;
        }
        public BloodPressure(StructuredDateTime when, NonNegativeInt systolic, NonNegativeInt diastolic)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }

            if (systolic == null)
            {
                throw new ArgumentNullException("systolic");
            }

            if (diastolic == null)
            {
                throw new ArgumentNullException("diastolic");
            }

            When = when;
            Systolic = systolic;
            Diastolic = diastolic;
        }
 public ApproxDateTime(DateTimeOffset dt)
 {
     DateTime = new StructuredDateTime(dt);
 }
 public Height(StructuredDateTime when)
     : this(when, null)
 {
 }
Exemple #7
0
 public ApproxDateTime(DateTimeOffset dt)
 {
     DateTime = new StructuredDateTime(dt);
 }