Skip to content

Commit c61e2ce

Browse files
author
Ron Petrusha
committed
Revisions for Reiwa era
1 parent a6eac74 commit c61e2ce

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

snippets/csharp/VS_Snippets_CLR/conceptual.calendars/cs/instantiatewithera1.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// <Snippet7>
21
using System;
32
using System.Globalization;
43

@@ -28,11 +27,11 @@ public static void Main()
2827
}
2928
// The example displays the following output:
3029
// Date instantiated without an era:
31-
// 1/1/2 in Japanese Calendar -> 1/1/1990 in Gregorian
30+
// 1/1/2 in Japanese Calendar -> 1/1/2020 in Gregorian
3231
//
3332
// Dates instantiated with eras:
33+
// 1/1/2 era 5 in Japanese Calendar -> 1/1/2020 in Gregorian
3434
// 1/1/2 era 4 in Japanese Calendar -> 1/1/1990 in Gregorian
3535
// 1/1/2 era 3 in Japanese Calendar -> 1/1/1927 in Gregorian
3636
// 1/1/2 era 2 in Japanese Calendar -> 1/1/1913 in Gregorian
3737
// 1/1/2 era 1 in Japanese Calendar -> 1/1/1869 in Gregorian
38-
// </Snippet7>

snippets/standard/datetime/calendars/current-era/cs/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ public static void Main()
1515

1616

1717
}
18-
}
18+
}
19+
// The example displays the following output:
20+
// Gregorian calendar date: 1/1/2020
21+
// Japanese calendar date: 令和2/1/1

snippets/standard/datetime/calendars/current-era/vb/Program.vb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ Public Module Example
1010
Console.WriteLine($"Gregorian calendar dat: {dat:d}")
1111
Console.WriteLine($"Japanese calendar dat: {dat.ToString("d", jaJp)}")
1212
End Sub
13-
End Module
13+
End Module
14+
' The example displays the following output:
15+
' Gregorian calendar date: 1/1/2020
16+
' Japanese calendar date: 令和2/1/1

snippets/visualbasic/VS_Snippets_CLR/conceptual.calendars/vb/instantiatewithera1.vb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
' Visual Basic .NET Document
2-
Option Strict On
3-
4-
' <Snippet7>
51
Imports System.Globalization
62

73
Module Example
@@ -29,11 +25,11 @@ Module Example
2925
End Module
3026
' The example displays the following output:
3127
' Date instantiated without an era:
32-
' 1/1/2 in Japanese Calendar -> 1/1/1990 in Gregorian
28+
' 1/1/2 in Japanese Calendar -> 1/1/2020 in Gregorian
3329
'
3430
' Dates instantiated with eras:
31+
' 1/1/2 era 5 in Japanese Calendar -> 1/1/2020 in Gregorian
3532
' 1/1/2 era 4 in Japanese Calendar -> 1/1/1990 in Gregorian
3633
' 1/1/2 era 3 in Japanese Calendar -> 1/1/1927 in Gregorian
3734
' 1/1/2 era 2 in Japanese Calendar -> 1/1/1913 in Gregorian
3835
' 1/1/2 era 1 in Japanese Calendar -> 1/1/1869 in Gregorian
39-
' </Snippet7>

0 commit comments

Comments
 (0)