79 references to XsdDateTimeFlags
System.Xml (79)
System\Xml\Schema\DataTypeImplementation.cs (14)
1808
private
XsdDateTimeFlags
dateTimeFlags;
1821
internal Datatype_dateTimeBase(
XsdDateTimeFlags
dateTimeFlags) {
1888
internal Datatype_dateTimeNoTimeZone() : base(
XsdDateTimeFlags
.XdrDateTimeNoTz) { }
1892
internal Datatype_dateTimeTimeZone() : base(
XsdDateTimeFlags
.XdrDateTime) {}
1922
internal Datatype_dateTime() : base(
XsdDateTimeFlags
.DateTime) {}
1926
internal Datatype_timeNoTimeZone() : base(
XsdDateTimeFlags
.XdrTimeNoTz) { }
1930
internal Datatype_timeTimeZone() : base(
XsdDateTimeFlags
.Time) { }
1962
internal Datatype_time() : base(
XsdDateTimeFlags
.Time) {}
1994
internal Datatype_date() : base(
XsdDateTimeFlags
.Date) { }
2026
internal Datatype_yearMonth() : base(
XsdDateTimeFlags
.GYearMonth) { }
2059
internal Datatype_year() : base(
XsdDateTimeFlags
.GYear) { }
2091
internal Datatype_monthDay() : base(
XsdDateTimeFlags
.GMonthDay) { }
2123
internal Datatype_day() : base(
XsdDateTimeFlags
.GDay) { }
2156
internal Datatype_month() : base(
XsdDateTimeFlags
.GMonth) { }
System\Xml\Schema\XmlValueConverter.cs (34)
586
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.Date));
590
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.DateTime));
603
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GDay));
607
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonth));
611
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay));
615
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GYear));
619
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth));
623
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.Date));
627
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.DateTime));
631
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GDay));
635
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonth));
639
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay));
643
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GYear));
647
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth));
686
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.Time));
690
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.Time));
712
return (new XsdDateTime(value,
XsdDateTimeFlags
.Date)).ToString();
716
return (new XsdDateTime(value,
XsdDateTimeFlags
.DateTime)).ToString();
728
return (new XsdDateTime(value,
XsdDateTimeFlags
.GDay)).ToString();
732
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonth)).ToString();
736
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay)).ToString();
740
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYear)).ToString();
744
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth)).ToString();
748
return (new XsdDateTime(value,
XsdDateTimeFlags
.Date)).ToString();
752
return (new XsdDateTime(value,
XsdDateTimeFlags
.DateTime)).ToString();
756
return (new XsdDateTime(value,
XsdDateTimeFlags
.GDay)).ToString();
760
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonth)).ToString();
764
return (new XsdDateTime(value,
XsdDateTimeFlags
.GMonthDay)).ToString();
768
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYear)).ToString();
772
return (new XsdDateTime(value,
XsdDateTimeFlags
.GYearMonth)).ToString();
789
return (new XsdDateTime(value,
XsdDateTimeFlags
.Time)).ToString();
793
return (new XsdDateTime(value,
XsdDateTimeFlags
.Time)).ToString();
873
return (DateTime)(new XsdDateTime(value,
XsdDateTimeFlags
.AllXsd));
877
return (DateTimeOffset)(new XsdDateTime(value,
XsdDateTimeFlags
.AllXsd));
System\Xml\Schema\XsdDateTime.cs (28)
117
public XsdDateTime(string text) : this(text,
XsdDateTimeFlags
.AllXsd) {
124
public XsdDateTime(string text,
XsdDateTimeFlags
kinds) : this() {
147
internal static bool TryParse(string text,
XsdDateTimeFlags
kinds, out XsdDateTime result) {
161
public XsdDateTime(DateTime dateTime,
XsdDateTimeFlags
kinds) {
196
public XsdDateTime(DateTimeOffset dateTimeOffset) : this(dateTimeOffset,
XsdDateTimeFlags
.DateTime) {
199
public XsdDateTime(DateTimeOffset dateTimeOffset,
XsdDateTimeFlags
kinds) {
694
public bool Parse(string text,
XsdDateTimeFlags
kinds) {
706
if (Test(kinds,
XsdDateTimeFlags
.DateTime |
XsdDateTimeFlags
.Date |
XsdDateTimeFlags
.XdrDateTime |
XsdDateTimeFlags
.XdrDateTimeNoTz)) {
711
if (Test(kinds,
XsdDateTimeFlags
.DateTime)) {
717
if (Test(kinds,
XsdDateTimeFlags
.Date)) {
724
if (Test(kinds,
XsdDateTimeFlags
.XdrDateTime)) {
730
if (Test(kinds,
XsdDateTimeFlags
.XdrDateTimeNoTz)) {
746
if (Test(kinds,
XsdDateTimeFlags
.Time)) {
757
if (Test(kinds,
XsdDateTimeFlags
.XdrTimeNoTz)) {
768
if (Test(kinds,
XsdDateTimeFlags
.GYearMonth |
XsdDateTimeFlags
.GYear)) {
770
if (Test(kinds,
XsdDateTimeFlags
.GYearMonth)) {
781
if (Test(kinds,
XsdDateTimeFlags
.GYear)) {
791
if (Test(kinds,
XsdDateTimeFlags
.GMonthDay |
XsdDateTimeFlags
.GMonth)) {
797
if (Test(kinds,
XsdDateTimeFlags
.GMonthDay) && ParseChar(start + Lz__mm, '-')) {
807
if (Test(kinds,
XsdDateTimeFlags
.GMonth)) {
818
if (Test(kinds,
XsdDateTimeFlags
.GDay)) {
987
private static bool Test(
XsdDateTimeFlags
left,
XsdDateTimeFlags
right) {
System\Xml\XmlConvert.cs (3)
792
XsdDateTime xsdDateTime = new XsdDateTime(value,
XsdDateTimeFlags
.DateTime);
1266
XsdDateTime xsdDateTime = new XsdDateTime(s,
XsdDateTimeFlags
.AllXsd);
1295
XsdDateTime xsdDateTime = new XsdDateTime(s,
XsdDateTimeFlags
.AllXsd);