getSeconds()

Return the seconds value from this date as a string.

Syntax

public String getSeconds()

Return values

The string representing the seconds. The return value is between 00 and 59.

Examples

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

See also

getIntSeconds()

Copyright IBM Corp. 2004