Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 2.09 KB

date-and-time.md

File metadata and controls

60 lines (50 loc) · 2.09 KB
title Date and Time | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
dev_langs
C++
helpviewer_keywords
time, MFC programming
time
MFC, date and time
dates, MFC
ms.assetid ecf56dc5-d418-4603-ad3e-af7e205a6403
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Date and Time

MFC supports several different ways of working with dates and times. These include:

  • General-purpose time classes. The CTime and CTimeSpan classes encapsulate most of the functionality associated with the ANSI-standard time library, which is declared in TIME.H.

  • Support for system clock. With MFC version 3.0, support was added to CTime for the Win32 SYSTEMTIME and FILETIME data types.

  • Support for the Automation DATE data type. DATE supports date, time, and date/time values. The COleDateTime and COleDateTimeSpan classes encapsulate this functionality. They work with the COleVariant class using Automation support.

What do you want to know more about

See Also

Concepts
General MFC Topics