getSeconds()

この日付から秒の値をストリングとして戻します。

構文

public String getSeconds()
 

戻り値

秒を表すストリング。戻り値は 00 から 59 です。

DtpDate toDay = new DtpDate();
 System.out.println("Today is "
    + toDay.getDayOfMonth() + "/"
    + toDay.getNumericMonth() + "/"
    + toDay.getYear() + " "
    + toDay.getHours() + ":"
    + toDay.getMinutes() + ":"
    + toDay.getSeconds());
 

参照項目

getIntSeconds()

Copyright IBM Corp. 2004