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