XLL+ Class Library

CXlFuncs::Second

Returns the second for a particular date value

[C++]
static int Second(
   double& dsecond,
   double serial_number
);
static int Second(
   long& lsecond,
   double serial_number
);
static int Second(
   short int& shsecond,
   double serial_number
);

Parameters

dsecond

A reference to a value that will contain an second value (between 0 and 59) if the function succeeds.

serial_number

An Excel date/time value. The date (integer) part will be ignored.

lsecond

A reference to a value that will contain an second value (between 0 and 59) if the function succeeds.

shsecond

A reference to a value that will contain an second value (between 0 and 59) if the function succeeds.

Return value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlFuncs Class | CXlFuncs Methods