getMSSince1970()

Return the number of milliseconds between January 1, 1970 00:00:00 and this date.

Syntax

public long getMSSince1970()

Return values

An integer number. It may be negative if this date is before January 1, 1970 00:00:00.

Exceptions

DtpDateException

Examples

try
   {
   DtpDate toDay = new DtpDate();
   long ms = toDay.getMSSince1970();
   }
catch ( DtpDateException date_e )
   {
   System.out.println(date_e.getMessage());
   }

See also

getSeconds()

Copyright IBM Corp. 2004