Skip to content

Commit ffc2c49

Browse files
authored
Update DateTime.xml (dotnet#5344)
1 parent 0acb20f commit ffc2c49

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

xml/System/DateTime.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ The behavior of the .NET Framework and COM means that if your application round-
504504
<altmember cref="T:System.DateTimeOffset" />
505505
<altmember cref="T:System.TimeSpan" />
506506
<altmember cref="T:System.Globalization.Calendar" />
507-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
507+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
508508
<altmember cref="T:System.TimeZoneInfo" />
509509
<related type="Article" href="/dotnet/standard/datetime/choosing-between-datetime">Choosing Between DateTime, DateTimeOffset, TimeSpan, and TimeZoneInfo</related>
510510
<related type="Article" href="/dotnet/standard/datetime/working-with-calendars">Working with Calendars</related>
@@ -3027,7 +3027,7 @@ The behavior of the .NET Framework and COM means that if your application round-
30273027
[!code-vb[System.DateTime.FromFileTime#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.fromfiletime/vb/fromfiletime1.vb#1)]</para>
30283028
</block>
30293029
<altmember cref="M:System.DateTime.ToUniversalTime" />
3030-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
3030+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
30313031
</Docs>
30323032
</Member>
30333033
<Member MemberName="FromFileTimeUtc">
@@ -3086,7 +3086,7 @@ The behavior of the .NET Framework and COM means that if your application round-
30863086
<exception cref="T:System.ArgumentOutOfRangeException">
30873087
<paramref name="fileTime" /> is less than 0 or represents a time greater than <see cref="F:System.DateTime.MaxValue" />.</exception>
30883088
<altmember cref="M:System.DateTime.ToUniversalTime" />
3089-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
3089+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
30903090
<altmember cref="M:System.DateTime.FromFileTime(System.Int64)" />
30913091
</Docs>
30923092
</Member>
@@ -7414,7 +7414,7 @@ In general, the ticks represent the time according to the time zone specified by
74147414
<altmember cref="M:System.DateTime.ToFileTimeUtc" />
74157415
<altmember cref="T:System.Int64" />
74167416
<altmember cref="M:System.DateTime.ToUniversalTime" />
7417-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
7417+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
74187418
</Docs>
74197419
</Member>
74207420
<Member MemberName="ToFileTimeUtc">
@@ -7472,7 +7472,7 @@ In general, the ticks represent the time according to the time zone specified by
74727472
<altmember cref="M:System.DateTime.ToFileTime" />
74737473
<altmember cref="T:System.Int64" />
74747474
<altmember cref="M:System.DateTime.ToUniversalTime" />
7475-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
7475+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
74767476
</Docs>
74777477
</Member>
74787478
<Member MemberName="ToLocalTime">
@@ -7517,7 +7517,7 @@ In general, the ticks represent the time according to the time zone specified by
75177517
<format type="text/markdown"><![CDATA[
75187518

75197519
## Remarks
7520-
The local time is equal to the Coordinated Universal Time (UTC) time plus the UTC offset. For more information about the UTC offset, see <xref:System.TimeZone.GetUtcOffset%2A?displayProperty=nameWithType>. The conversion also takes into account the daylight saving time rule that applies to the time represented by the current <xref:System.DateTime> object.
7520+
The local time is equal to the Coordinated Universal Time (UTC) time plus the UTC offset. For more information about the UTC offset, see <xref:System.TimeZoneInfo.GetUtcOffset%2A?displayProperty=nameWithType>. The conversion also takes into account the daylight saving time rule that applies to the time represented by the current <xref:System.DateTime> object.
75217521

75227522
> [!IMPORTANT]
75237523
> On Windows XP systems, the <xref:System.DateTime.ToLocalTime%2A> method recognizes only the current adjustment rule when converting from UTC to local time. As a result, conversions for periods before the current adjustment rule came into effect may not accurately reflect the difference between UTC and local time.
@@ -7559,9 +7559,9 @@ In general, the ticks represent the time according to the time zone specified by
75597559
[!code-csharp[System.DateTime.ToLocalTime#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.tolocaltime/cs/tolocaltime1.cs#1)]
75607560
[!code-vb[System.DateTime.ToLocalTime#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.tolocaltime/vb/tolocaltime1.vb#1)]</para>
75617561
</block>
7562-
<altmember cref="T:System.TimeZone" />
7563-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
7564-
<altmember cref="M:System.TimeZone.GetDaylightChanges(System.Int32)" />
7562+
<altmember cref="T:System.TimeZoneInfo" />
7563+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
7564+
<altmember cref="M:System.TimeZoneInfo.GetAdjustmentRules" />
75657565
<altmember cref="M:System.DateTime.ToUniversalTime" />
75667566
</Docs>
75677567
</Member>
@@ -8323,7 +8323,7 @@ The value of the current <xref:System.DateTime> object is formatted using the pa
83238323
<format type="text/markdown"><![CDATA[
83248324

83258325
## Remarks
8326-
The Coordinated Universal Time (UTC) is equal to the local time minus the UTC offset. For more information about the UTC offset, see <xref:System.TimeZone.GetUtcOffset%2A?displayProperty=nameWithType>. The conversion also takes into account the daylight saving time rule that applies to the time represented by the current <xref:System.DateTime> object.
8326+
The Coordinated Universal Time (UTC) is equal to the local time minus the UTC offset. For more information about the UTC offset, see <xref:System.TimeZoneInfo.GetUtcOffset%2A?displayProperty=nameWithType>. The conversion also takes into account the daylight saving time rule that applies to the time represented by the current <xref:System.DateTime> object.
83278327

83288328
> [!IMPORTANT]
83298329
> On Windows XP systems, the <xref:System.DateTime.ToUniversalTime%2A> method recognizes only the current adjustment rule when converting from local time to UTC. As a result, conversions for periods before the current adjustment rule came into effect may not accurately reflect the difference between local time and UTC.
@@ -9170,7 +9170,7 @@ The value of the current <xref:System.DateTime> object is formatted using the pa
91709170
]]></format>
91719171
</remarks>
91729172
<altmember cref="P:System.DateTimeOffset.UtcNow" />
9173-
<altmember cref="M:System.TimeZone.GetUtcOffset(System.DateTime)" />
9173+
<altmember cref="M:System.TimeZoneInfo.GetUtcOffset(System.DateTime)" />
91749174
</Docs>
91759175
</Member>
91769176
<Member MemberName="Year">

0 commit comments

Comments
 (0)