示例#1
0
        public void AnsiDateTime(System.DateTime d, int start, int end)         // ( 8.4.26.1 )
        {
            BeginField(start);
            var dt = new FieldValidator(this.generator);

            dt.Digits(d.Year, 1, 4);
            dt.Digits(d.Month, 5, 6);
            dt.Digits(d.Day, 7, 8);
            dt.Digits(d.Hour, 9, 10);
            dt.Digits(d.Minute, 11, 12);
            dt.Digits(d.Second, 13, 14);
            dt.Digits(d.Millisecond / 10, 15, 16);
            dt.Digits(0, 17, 17);             // TODO FIXME - I don't understand the docs for how to encode the GMT offset...
            EndField(end);
        }
示例#2
0
		public void AnsiDateTime(System.DateTime d, int start, int end) // ( 8.4.26.1 )
		{
			BeginField(start);
			var dt = new FieldValidator(this.generator);
			dt.Digits(d.Year, 1, 4);
			dt.Digits(d.Month, 5, 6);
			dt.Digits(d.Day, 7, 8);
			dt.Digits(d.Hour, 9, 10);
			dt.Digits(d.Minute, 11, 12);
			dt.Digits(d.Second, 13, 14);
			dt.Digits(d.Millisecond / 10, 15, 16);
			dt.Digits(0, 17, 17); // TODO FIXME - I don't understand the docs for how to encode the GMT offset...
			EndField(end);
		}