summaryrefslogtreecommitdiff
path: root/src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs')
-rw-r--r--src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs b/src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs
new file mode 100644
index 0000000000..b6fd993b1b
--- /dev/null
+++ b/src/mscorlib/corefx/System/Globalization/JapaneseCalendar.Win32.cs
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using Internal.Runtime.Augments;
+
+namespace System.Globalization
+{
+ public partial class JapaneseCalendar : Calendar
+ {
+ public static int GetJapaneseEraCount()
+ {
+ return WinRTInterop.Callbacks.GetJapaneseEraCount();
+ }
+
+ public static bool GetJapaneseEraInfo(int era, out DateTimeOffset dateOffset, out string eraName, out string abbreviatedEraName)
+ {
+ return WinRTInterop.Callbacks.GetJapaneseEraInfo(era, out dateOffset, out eraName, out abbreviatedEraName);
+ }
+ }
+}