PowerTools InputMan for ASP.NET 8.0J
AddMinutes メソッド
使用例 

DateTimeExのインスタンスに加算する分(Int32 型)
分を加算します。
構文
Public Function AddMinutes( _
   ByVal value As Integer _
) As DateTimeEx
public DateTimeEx AddMinutes( 
   int value
)

パラメータ

value
DateTimeExのインスタンスに加算する分(Int32 型)

戻り値の型

加算後の新しいDateTimeExインスタンス。
解説
AddMinutesメソッドは、呼び出し元のインスタンスにvalue引数で指定した時間を加算した新しいDateTimeExインスタンスを作成します。
使用例
Imports GrapeCity.Web.Input.Core
Imports System.Diagnostics

' 今から40分後の日付と時刻を算出します。
Dim dtEx As DateTimeEx = DateTimeEx.Now.AddMinutes(40)
Debug.WriteLine(dtEx.ToString())
using GrapeCity.Web.Input.Core;
using System.Diagnostics;

// 今から40分後の日付と時刻を算出します。
DateTimeEx dtEx = DateTimeEx.Now.AddMinutes(40);
Debug.WriteLine(dtEx.ToString());
参照

DateTimeEx クラス
DateTimeEx メンバ

 

 


© 2005-2015 GrapeCity inc. All rights reserved.