var oDate = Pm.CreatePmDateObject(); // Creates the object with current time var nSec = oDate.GetSecond();
var oDate = Pm.CreatePmDateObject(tDate); var nSec = oDate.GetSecond();