87 references to XsdDateTimeFlags
System.Private.Xml (87)
System\Xml\Schema\DataTypeImplementation.cs (14)
1982
private readonly
XsdDateTimeFlags
_dateTimeFlags;
1993
internal Datatype_dateTimeBase(
XsdDateTimeFlags
dateTimeFlags)
2070
internal Datatype_dateTimeNoTimeZone() : base(
XsdDateTimeFlags
.XdrDateTimeNoTz) { }
2075
internal Datatype_dateTimeTimeZone() : base(
XsdDateTimeFlags
.XdrDateTime) { }
2106
internal Datatype_dateTime() : base(
XsdDateTimeFlags
.DateTime) { }
2111
internal Datatype_timeNoTimeZone() : base(
XsdDateTimeFlags
.XdrTimeNoTz) { }
2116
internal Datatype_timeTimeZone() : base(
XsdDateTimeFlags
.Time) { }
2149
internal Datatype_time() : base(
XsdDateTimeFlags
.Time) { }
2182
internal Datatype_date() : base(
XsdDateTimeFlags
.Date) { }
2215
internal Datatype_yearMonth() : base(
XsdDateTimeFlags
.GYearMonth) { }
2249
internal Datatype_year() : base(
XsdDateTimeFlags
.GYear) { }
2282
internal Datatype_monthDay() : base(
XsdDateTimeFlags
.GMonthDay) { }
2315
internal Datatype_day() : base(
XsdDateTimeFlags
.GDay) { }
2349
internal Datatype_month() : base(
XsdDateTimeFlags
.GMonth) { }
System\Xml\Schema\XmlValueConverter.cs (34)
529
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.Date));
534
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.DateTime));
550
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GDay));
555
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonth));
560
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay));
565
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GYear));
570
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth));
575
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.Date));
580
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.DateTime));
585
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GDay));
590
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonth));
595
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay));
600
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GYear));
605
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth));
652
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.Time));
657
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.Time));
683
return (new XsdDateTime(value,
XsdDateTimeFlags
.Date)).ToString();
688
return (new XsdDateTime(value,
XsdDateTimeFlags
.DateTime)).ToString();
703
return (new XsdDateTime(value,
XsdDateTimeFlags
.GDay)).ToString();
708
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonth)).ToString();
713
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay)).ToString();
718
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYear)).ToString();
723
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth)).ToString();
728
return (new XsdDateTime(value,
XsdDateTimeFlags
.Date)).ToString();
733
return (new XsdDateTime(value,
XsdDateTimeFlags
.DateTime)).ToString();
738
return (new XsdDateTime(value,
XsdDateTimeFlags
.GDay)).ToString();
743
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonth)).ToString();
748
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay)).ToString();
753
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYear)).ToString();
758
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth)).ToString();
777
return (new XsdDateTime(value,
XsdDateTimeFlags
.Time)).ToString();
782
return (new XsdDateTime(value,
XsdDateTimeFlags
.Time)).ToString();
874
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.AllXsd));
879
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.AllXsd));
System\Xml\Schema\XsdDateTime.cs (27)
128
public XsdDateTime(string text,
XsdDateTimeFlags
kinds) : this()
153
internal static bool TryParse(string text,
XsdDateTimeFlags
kinds, out XsdDateTime result)
168
public XsdDateTime(DateTime dateTime,
XsdDateTimeFlags
kinds)
208
public XsdDateTime(DateTimeOffset dateTimeOffset) : this(dateTimeOffset,
XsdDateTimeFlags
.DateTime)
212
public XsdDateTime(DateTimeOffset dateTimeOffset,
XsdDateTimeFlags
kinds)
715
public bool Parse(string text,
XsdDateTimeFlags
kinds)
727
if (Test(kinds,
XsdDateTimeFlags
.DateTime |
XsdDateTimeFlags
.Date |
XsdDateTimeFlags
.XdrDateTime |
XsdDateTimeFlags
.XdrDateTimeNoTz))
731
if (Test(kinds,
XsdDateTimeFlags
.DateTime))
739
if (Test(kinds,
XsdDateTimeFlags
.Date))
748
if (Test(kinds,
XsdDateTimeFlags
.XdrDateTime))
756
if (Test(kinds,
XsdDateTimeFlags
.XdrDateTimeNoTz))
775
if (Test(kinds,
XsdDateTimeFlags
.Time))
787
if (Test(kinds,
XsdDateTimeFlags
.XdrTimeNoTz))
799
if (Test(kinds,
XsdDateTimeFlags
.GYearMonth |
XsdDateTimeFlags
.GYear))
803
if (Test(kinds,
XsdDateTimeFlags
.GYearMonth))
816
if (Test(kinds,
XsdDateTimeFlags
.GYear))
828
if (Test(kinds,
XsdDateTimeFlags
.GMonthDay |
XsdDateTimeFlags
.GMonth))
836
if (Test(kinds,
XsdDateTimeFlags
.GMonthDay) && ParseChar(start + s_lz__mm, '-'))
848
if (Test(kinds,
XsdDateTimeFlags
.GMonth))
860
if (Test(kinds,
XsdDateTimeFlags
.GDay))
1069
private static bool Test(
XsdDateTimeFlags
left,
XsdDateTimeFlags
right)
System\Xml\XmlConvert.cs (4)
725
XsdDateTime xsdDateTime = new XsdDateTime(value,
XsdDateTimeFlags
.DateTime);
1212
XsdDateTime xsdDateTime = new XsdDateTime(s,
XsdDateTimeFlags
.AllXsd);
1242
XsdDateTime xsdDateTime = new XsdDateTime(s,
XsdDateTimeFlags
.AllXsd);
1787
XsdDateTime xsdDateTime = new XsdDateTime(value,
XsdDateTimeFlags
.DateTime);
System\Xml\Xsl\Runtime\XsltConvert.cs (2)
202
return (new XsdDateTime(value,
XsdDateTimeFlags
.DateTime)).ToString();
242
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.AllXsd));
System\Xml\Xsl\Runtime\XsltFunctions.cs (6)
372
if (!XsdDateTime.TryParse(dateTime,
XsdDateTimeFlags
.AllXsd |
XsdDateTimeFlags
.XdrDateTime |
XsdDateTimeFlags
.XdrTimeNoTz, out xdt))
432
if (!XsdDateTime.TryParse(dateTime,
XsdDateTimeFlags
.AllXsd |
XsdDateTimeFlags
.XdrDateTime |
XsdDateTimeFlags
.XdrTimeNoTz, out xdt))