Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

COleDateTime::GetSecond

 

Gets the second represented by this date/time value.


int GetSecond( ) const throw( );

The second represented by the value of this COleDateTime object or COleDateTime::error if the second could not be obtained.

Valid return values range between 0 and 59.

System_CAPS_noteNote

The COleDateTime class does not support leap seconds.

For more information about the implementation for COleDateTime, see the article Date and Time: Automation Support.

For information on other member functions that query the value of this COleDateTime object, see the following member functions:

Example

See the example for GetHour.

Requirements

Header: atlcomtime.h

Show: