Share via


COleDateTime::GetSecond

Gets the second represented by this date/time value.

int GetSecond( ) const throw( );

Return Value

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

Remarks

Valid return values range between 0 and 59.

Note

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

See Also

Reference

COleDateTime Class

Hierarchy Chart

COleDateTime::COleDateTime

COleDateTime::SetDateTime

COleDateTime::operator =

COleDateTime::GetStatus

Other Resources

COleDateTime Members