XLL+ Class Library (7.0)

CXlDate::Now

Get the current time

static double Now( );

Return Value

Excel serial date/time value.

Remarks

This function calls Excel's NOW() function.

Exceptions

If a call to the Excel API fails, then an exception of type CXlApiException will be thrown. Since this exception is derived from CXlRuntimeException, it will be caught by the add-in wrapper function when this method is called from within an add-in function.

Requirements

Header: xlldate.h

See Also

CXlDate Class | CXlDate Methods