HebrewCalendar.MinSupportedDateTime プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HebrewCalendar.MinSupportedDateTime プロパティの意味・解説 

HebrewCalendar.MinSupportedDateTime プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

HebrewCalendar 型でサポートされている最も古い日付と時刻取得します

名前空間: System.Globalization
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Overrides ReadOnly
 Property MinSupportedDateTime As DateTime
Dim instance As HebrewCalendar
Dim value As DateTime

value = instance.MinSupportedDateTime
public override DateTime MinSupportedDateTime { get;
 }
/** @property */
public DateTime get_MinSupportedDateTime ()
public override function get
 MinSupportedDateTime () : DateTime

プロパティ
HebrewCalendar 型でサポートされている最も古い日付と時刻。これは、グレゴリオ暦での紀元 1583 年 1 月 1 日最初瞬間相当します

解説解説
使用例使用例

カレンダー最小値および最大値取得するコードの例次に示します

Imports System
Imports System.Globalization

Public Class SamplesCalendar   

   Public Shared Sub Main()

      ' Create an instance of the calendar.
      Dim myCal As New HebrewCalendar()
      Console.WriteLine(myCal.ToString())

      ' Create an instance of the GregorianCalendar.
      Dim myGre As New GregorianCalendar()

      ' Display the MinSupportedDateTime and its equivalent in the GregorianCalendar.
      Dim myMin As DateTime = myCal.MinSupportedDateTime
      Console.Write("MinSupportedDateTime: {0:D2}/{1:D2}/{2:D4}",
 myCal.GetMonth(myMin), myCal.GetDayOfMonth(myMin), myCal.GetYear(myMin))
      Console.WriteLine(" (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre.GetMonth(myMin), myGre.GetDayOfMonth(myMin), myGre.GetYear(myMin))

      ' Display the MaxSupportedDateTime and its equivalent in the GregorianCalendar.
      Dim myMax As DateTime = myCal.MaxSupportedDateTime
      Console.Write("MaxSupportedDateTime: {0:D2}/{1:D2}/{2:D4}",
 myCal.GetMonth(myMax), myCal.GetDayOfMonth(myMax), myCal.GetYear(myMax))
      Console.WriteLine(" (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre.GetMonth(myMax), myGre.GetDayOfMonth(myMax), myGre.GetYear(myMax))

   End Sub 'Main 

End Class 'SamplesCalendar


'This code produces the following output.
'
'System.Globalization.HebrewCalendar
'MinSupportedDateTime: 04/07/5343 (in Gregorian, 01/01/1583)
'MaxSupportedDateTime: 13/29/5999 (in Gregorian, 09/29/2239)

using System;
using System.Globalization;


public class SamplesCalendar  {

   public static void Main()
  {

      // Create an instance of the calendar.
      HebrewCalendar myCal = new HebrewCalendar();
      Console.WriteLine( myCal.ToString() );

      // Create an instance of the GregorianCalendar.
      GregorianCalendar myGre = new GregorianCalendar();

      // Display the MinSupportedDateTime and its equivalent in the
 GregorianCalendar.
      DateTime myMin = myCal.MinSupportedDateTime;
      Console.Write( "MinSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal.GetMonth(myMin),
 myCal.GetDayOfMonth(myMin), myCal.GetYear(myMin) );
      Console.WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre.GetMonth(myMin), myGre.GetDayOfMonth(myMin), myGre.GetYear(myMin) );

      // Display the MaxSupportedDateTime and its equivalent in the
 GregorianCalendar.
      DateTime myMax = myCal.MaxSupportedDateTime;
      Console.Write( "MaxSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal.GetMonth(myMax),
 myCal.GetDayOfMonth(myMax), myCal.GetYear(myMax) );
      Console.WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre.GetMonth(myMax), myGre.GetDayOfMonth(myMax), myGre.GetYear(myMax) );

   }

}


/*
This code produces the following output.

System.Globalization.HebrewCalendar
MinSupportedDateTime: 04/07/5343 (in Gregorian, 01/01/1583)
MaxSupportedDateTime: 13/29/5999 (in Gregorian, 09/29/2239)

*/
using namespace System;
using namespace System::Globalization;

int main()
{
   // Create an instance of the calendar.
   HebrewCalendar^ myCal = gcnew HebrewCalendar;
   Console::WriteLine( myCal );
   
   // Create an instance of the GregorianCalendar.
   GregorianCalendar^ myGre = gcnew GregorianCalendar;
   
   // Display the MinSupportedDateTime and its equivalent in the GregorianCalendar.
   DateTime myMin = myCal->MinSupportedDateTime;
   Console::Write( "MinSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal->GetMonth(
 myMin ), myCal->GetDayOfMonth( myMin ), myCal->GetYear( myMin ) );
   Console::WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre->GetMonth( myMin ), myGre->GetDayOfMonth( myMin ), myGre->GetYear(
 myMin ) );
   
   // Display the MaxSupportedDateTime and its equivalent in the GregorianCalendar.
   DateTime myMax = myCal->MaxSupportedDateTime;
   Console::Write( "MaxSupportedDateTime: {0:D2}/{1:D2}/{2:D4}", myCal->GetMonth(
 myMax ), myCal->GetDayOfMonth( myMax ), myCal->GetYear( myMax ) );
   Console::WriteLine( " (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 myGre->GetMonth( myMax ), myGre->GetDayOfMonth( myMax ), myGre->GetYear(
 myMax ) );
}

/*
This code produces the following output.

System.Globalization.HebrewCalendar
MinSupportedDateTime: 04/07/5343 (in Gregorian, 01/01/1583)
MaxSupportedDateTime: 13/29/5999 (in Gregorian, 09/29/2239)

*/
import System.* ;
import System.Globalization.* ;

public class SamplesCalendar
{
    public static void main(String[]
 args)
    {
        // Create an instance of the calendar.
        HebrewCalendar myCal = new HebrewCalendar();

        Console.WriteLine(myCal.ToString());

        // Create an instance of the GregorianCalendar.
        GregorianCalendar myGre = new GregorianCalendar();

        // Display the MinSupportedDateTime and its equivalent in the
 GregorianCalendar.
        DateTime myMin = myCal.get_MinSupportedDateTime();

        Console.Write("MinSupportedDateTime: {0}/{1}/{2}", 
            ((System.Int32)myCal.GetMonth(myMin)).ToString("D2"), 
            ((System.Int32)myCal.GetDayOfMonth(myMin)).ToString("D2"),
 
            ((System.Int32)myCal.GetYear(myMin)).ToString("D4"));
        
        Console.WriteLine(" (in Gregorian, {0:D2}/{1:D2}/{2:D4})",
 
            ((System.Int32)myGre.GetMonth(myMin)).ToString("D2"), 
            ((System.Int32)myGre.GetDayOfMonth(myMin)).ToString("D2"),
 
            ((System.Int32)myGre.GetYear(myMin)).ToString("D4"));

        // Display the MaxSupportedDateTime and its equivalent in the
 GregorianCalendar.
        DateTime myMax = myCal.get_MaxSupportedDateTime();

        Console.Write("MaxSupportedDateTime: {0}/{1}/{2}", 
            ((System.Int32)myCal.GetMonth(myMax)).ToString("D2"), 
            ((System.Int32)myCal.GetDayOfMonth(myMax)).ToString("D2"),
 
            ((System.Int32)myCal.GetYear(myMax)).ToString("D4"));
        
        Console.WriteLine(" (in Gregorian, {0}/{1}/{2})",
 
            ((System.Int32)myGre.GetMonth(myMax)).ToString("D2"), 
            ((System.Int32)myGre.GetDayOfMonth(myMax)).ToString("D2"),
 
            ((System.Int32)myGre.GetYear(myMax)).ToString("D4"));
    } //main 
} //SamplesCalendar

/*
This code produces the following output.

System.Globalization.HebrewCalendar
MinSupportedDateTime: 04/07/5343 (in Gregorian, 01/01/1583)
MaxSupportedDateTime: 13/29/5999 (in Gregorian, 09/29/2239)

*/
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HebrewCalendar.MinSupportedDateTime プロパティ」の関連用語

HebrewCalendar.MinSupportedDateTime プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HebrewCalendar.MinSupportedDateTime プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS