cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

JMP Knowledge Base

Choose Language Hide Translation Bar
ある日付からある日付までの「年数」や「月数」、「日数」を求める関数

日付関数のDate Difference 関数が使用できます。
この関数を用いると、ある2つの日付時間値の差を、指定した単位(日、月、年)で求めることができます。

 

たとえば、日付が入っている列「開始日付」、「終了日付」の2つの列に対する日付時間値の差を、年を単位にして求めるには、次のような関数を作成します。
3番目の引数 Year は、 月数や日数を表すMonthやDayと指定することも可能です。
4番目の引数 actualは、実際の間隔を求めることを表しています。


この他に、start(期首の差を求める)、fractional(間隔の小数部分まで求める)の指定が可能です。

Date Difference 関数Date Difference 関数

 

Details

Recommended Articles