Help Center
Help CenterAfxNova

DateTime

255 entries across 5 topics.

Topics

All entries

CFileTime 12

CFileTimeSpan 14

COleDateTime 27

CAST OperatorReturns the **COleDateTime** value as a long integer.CheckRangeConstructorConstructorsCreate new **COleDateTime** objects initialized to the specified value.DateFromDoubleFormatConverts a **COleDateTime** object to a string.GetAsDBTIMESTAMPReturns the date/time the of this **COleDateTime** object as a **DBTIMESTAMP** data structure.GetAsSystemTimeReturns the date/time the of this **COleDateTime** object as a **SYSTEMTIME** data structure.GetAsUdateReturns the date/time the of this **COleDateTime** object as a UDATE structure.GetCurrentTimeReturns the current date/time value in local time.GetDayGets the day represented by this date/time value.GetDayOfWeekGets the day of the week represented by this date/time value.GetDayOfYearGets the day of the year represented by this date/time value.GetHourGets the hour represented by this date/time value.GetLocalTimeReturns the current date/time value in local time.GetMinuteGets the minute represented by this date/time value.GetMonthGets the month represented by this date/time value.GetSecondGets the second represented by this date/time value.GetStatusGets the status (validity) of a given **COleDateTime** object.GetSystemTimeReturns the current date/time value in Coordinated Universal Time (UTC).GetYearGets the year represented by this date/time value.LET OperatorAssigns a value to a **COleDateTime** object.OperatorsAdds, subtracts or compares **COleDateTime** objects.SetDateSets the date of this **COleDateTime** object.SetDateTimeSets the date and time of this **COleDateTime** object.SetStatusSets the status (validity) of a given **COleDateTime** object.SetTimeSets the time of this **COleDateTime** object.

ColeDateTime 1

COleDateTimeSpan 17

CPowerTime 53

AddDaysAdds the specified number of days to this **CPowerTime** object. You can subtract days by using a negative number.AddHoursAdds the specified number of hours to this **CPowerTime** object. You can subtract hours by using a negative number.AddMinutesAdds the specified number of minutes to this **CPowerTime** object. You can subtract minutes by using a negative number.AddMonthsAdds the specified number of months to this **CPowerTime** object. You can subtract months by using a negative number.AddMSecondsAdds the specified number of milliseconds to this **CPowerTime** object. You can subtract milliseconds by using a negative number.AddSecondsAddYearsAdds the specified number of years to this **CPowerTime** object. You can subtract years by using a negative number.AstroDayReturns the Astronomical Day for any given date.AstroDayOfWeekReturns the Astronomical Day for any given date.CAST OperatorReturns the **CPowerTime** value as an unsigned long integer.ConstructorsCreate new **CPowerTime** objects initialized to the specified value.DateDiffReturns the difference between two dates in years, months and days.DateSerialGets/sets the date and time as a date serial.DateStringReturns the date as a string based on the specified mask, e.g. "dd-MM-yyyy".DayReturns the Day component of the **CPowerTime** object. It is a value in the range of 1-31.DayOfWeekReturns the Day-of-Week component of the **CPowerTime** object.DayOfWeekStringReturns the Day-of-Week component of the **CPowerTime** object as a string.DayOfYearReturns the day of the year, where Jan 1 is the first day of the year.DaysDiffReturns the days of difference between two dates.DaysInMonthReturns the number of days in the specified month.DaysInYearReturns the number of days of the year.FormatConverts a **CPowerTime** object to a string.GetAsFileTimeReturns the date and time as a **FILETIME** structure.GetAsJulianDateReturns the date as a Julian date.GetAsSystemTimeReturns the date and time as a **SYSTEMTIME** structure.GetCurrentTimeReturns a **CPowerTime** object that represents the current system date and time.GetFileTimeReturns the value of the **CPowerTime** object.HourReturns the Hour component of the **CPowerTime** object. It is a numeric value in the range of 0-23.IsFirstDayOfMonthReturns true if the date is the first day of the month; false, otherwise.IsLastDayOfMonthReturns true if the date is the last day of the month; false, otherwise.IsLeapYearDetermines if a given year is a leap year or not.JulianToGregorianConverts a Julian date to a Gregorian date.LET OperatorAssigns a value to a **CPowerTime** object.MinuteReturns the Minute component of the **CPowerTime** object. This is a numeric value in the range of 0-59.MonthReturns the Month component of the **CPowerTime** object. It is a value in the range of 1-12.MonthStringReturns the Month component of the **CPowerTime** object as a string.MSecondReturns the Millisecond component of the **CPowerTime** object.This is a numeric value in the range of 0-999.NewDateSets a new date to this **CPowerTime** object.NewTimeSets a new time to this **CPowerTime** object.NowAssigns the current local date and time on this computer to this **CPowerTime** object.NowUTCAssigns the current Coordinated Universal date and time (UTC) to this **CPowerTime** object.OperatorsAdds, subtracts or compares **CPowerTime** objects.SecondReturns the Second component of the **CPowerTime** object. This is a numeric value in the range of 0-59.SetFileTimeSets the date and time of this **CPowerTime** object.TimeStringReturns the time as a string based on the specified mask, e.g. "dd-MM-yyyy".TodayAssigns the current local date on this computer to this **CPowerTime** object.ToLocalTimeToUTCThe **CPowerTime** object is converted to Coordinated Universal Time (UTC).WeekNumberReturns the week number for a given date.WeekOneReturns the first day of the first week of the year.WeeksInMonthReturns the number of weeks in the year.WeeksInYearReturns the number of weeks in the specefied month and year.YearReturns the Year component of the **CPowerTime** object.

CTime64 21

CTimeSpan 14

Procedures 96

AfxAstroDayReturns the Astronomical Day for any given date.AfxAstroDayOfWeekCalculates the day of the week, Sunday through Monday, of a given date.AfxDateAddDaysAdds the specified number of days to a given date.AfxDateDiffCalculates the days of difference between two dates.AfxDayOfYearReturns the day of the year, where Jan 1 is the first day of the year.AfxDaysBetweenReturns the number of days between two given dates.AfxDaysInMonthReturns the number of days in the specified month/year.AfxDaysInYearReturns the number of days in the specified year.AfxFileTimeToDateStrConverts a FILETIME type to a string containing the date based on the specified mask, e.g. "dd-MM-yyyy".AfxFileTimeToTime64Converts a FILETIME to a \_\_time64_t (LONGLONG) value.AfxFileTimeToTimeStrConverts a FILETIME type to a string containing the time based on the specified mask, e.g. "hh':'mm':'ss".AfxFileTimeToVariantTimeAfxGmtTime64Converts a FILETIME to a \_\_time64_t (LONGLONG) value.AfxGregorianToJulianConverts a Gregorian date to a Julian date. The year must be a 4 digit year.AfxIsFirstDayOfMonthReturns TRUE if today is the first day of the month; False, otherwise.AfxIsLastDayOfMonthReturns TRUE if today is the last day of the month; False, otherwise.AfxIsLeapYearDetermines if a given year is a leap year or not.AfxIsValidFILETIMEChecks if a FILETIME is valid.AfxJulianDayOfWeekGiven a Julian date, returns the day of week.AfxJulianToGregorianConverts a Julian date to a Gregorian date.AfxJulianToGregorianStrConverts a Julian date to a Gregorian date based on the specified mask, e.g. "dd-MM-yyyy".AfxLocalDateStrReturns the current local date based on the specified mask, e.g. "dd-MM-yyyy".AfxLocalDayReturns the current local day. The valid values are 1 through 31.AfxLocalDayNameReturns the localized name of today.AfxLocalDayOfWeekReturns the current day of week. It is a numeric value in the range of 0-6 representing Sunday through Saturday: 0 = Sunday, 1 = Monday, etc.AfxLocalDayOfWeekNameReturns the localized name of the day of the week.AfxLocalDayOfWeekShortNameReturns the localized short name of the day of the week.AfxLocalDayShortNameReturns the localized short name of today.AfxLocalFileTimeReturns the current local time as a FILETIME structure.AfxLocalHourReturns the current local hour. The valid values are 0 through 23.AfxLocalMonthReturns the current local month. The valid values are 1 through 12 (1 = January, etc.).AfxLocalMonthNameReturns the localized name of today's local month.AfxLocalShortMonthNameReturns the localized short name of today's local month.AfxLocalSystemTimeReturns the current local time as a SYSTEMTIME structure.AfxLocalTime64Converts a FILETIME to a \_\_time64_t (LONGLONG) value.AfxLocalTimeStrReturns the current local time based on the specified mask, e.g. "hh':'mm':'ss".AfxLocalVariantTimeReturns the local date and time as a DATE_ (double).AfxLocalYearReturns the current local year. The valid values are 1601 through 30827.AfxLongDateReturns the current date in long format.AfxMakeTime64Converts the local time to a calendar value.AfxMonthNameReturns the localized name of the specified month.AfxNumberOfLeapYearsReturns the number of leap years between two years.AfxQuadDateTimeReturns the current date and time as a QUAD (8 bytes). In Free Basic, a QUAD is an ULONGLONG.AfxQuadDateToStrConverts a date stored in a QUAD into a formatted date string. For example, to get the date string "Wed, Aug 31 94" use the following picture string: "ddd',' MMM dd yy". In Free Basic, a QUAD is an ULONGLONG.AfxQuadTimeToStrConverts a time stored in a QUAD into a formatted time string. For example, get the time string "11:29:40 PM" use the following picture string: "hh':'mm':'ss tt". In Free Basic, a QUAD is an ULONGLONG.AfxShortDateReturns the current date in short format.AfxShortMonthNameReturns the localized short name of the specified month.AfxSystemDayReturns the current system day. The valid values are 1 through 31.AfxSystemDayNameReturns the localized name of today.AfxSystemDayOfWeekReturns the current day of week. It is a numeric value in the range of 0-6 representing Sunday through Saturday: 0 = Sunday, 1 = Monday, etc.AfxSystemDayShortNameReturns the localized short name of today.AfxSystemFileTimeReturns the current system time as a FILETIME structure.AfxSystemHourReturns the current system hour. The valid values are 0 through 23.AfxSystemMonthReturns the current system month. The valid values are 1 through 12 (1 = January, etc.).AfxSystemMonthNameReturns the localized name of today's system month.AfxSystemShortMonthNameReturns the localized short name of today's system month.AfxSystemSystemTimeReturns the current system time as a SYSTEMTIME structure.AfxSystemTimeToDateStrConverts a SYSTEMTIME type to a string containing the date based on the specified mask, e.g. "dd-MM-yyyy".AfxSystemTimeToTime64Converts a system time to a \_\_time64_t (LONGLONG).AfxSystemTimeToTimeStrConverts a SYSTEMTIME type to a string containing the time based on the specified mask, e.g. "hh':'mm':'ss".AfxSystemTimeToVariantTimeConverts a SYSTEMTIME to a DATE_ (double).AfxSystemYearReturns the current system year. The valid values are 1601 through 30827.AfxTime64Returns the time as seconds elapsed since midnight, January 1, 1970.AfxTime64ToFileTimeConverts a \_\_time64_t (LONGLONG) value to a FILETIME structure.AfxTime64ToSystemTimeConverts a \_\_time64_t (LONGLONG) to a SYSTEMTIME structure.AfxTimeZoneBiasCurrent bias for local time translation. The bias is the difference between Coordinated Universal Time (UTC) and local time. All translations between UTC and local time are based on the following formula: UTC = local time + bias. Units = minutes.AfxTimeZoneDaylightBiasBias value to be used during local time translations that occur during daylight saving time. This property is ignored if a value for the **DaylightDay** property is not supplied. The value of this property is added to the Bias property to form the bias used during daylight time. In most time zones, the value of this property is -60. Units = minutes.AfxTimeZoneDaylightDay**DaylightDayOfWeek** of the **DaylightMonth** when the transition from standard time to daylight saving time occurs on this operating system.AfxTimeZoneDaylightDayOfWeekDay of the week when the transition from standard time to daylight saving time occurs on an operating system.AfxTimeZoneDaylightHourHour of the day when the transition from standard time to daylight saving time occurs on an operating system.AfxTimeZoneDaylightMinuteMinute of the **DaylightHour** when the transition from standard time to daylight saving time occurs on an operating system.AfxTimeZoneDaylightMonthMonth when the transition from standard time to daylight saving time occurs on an operating system.AfxTimeZoneDaylightNameA description for daylight saving time. For example, "EST" could indicate Eastern Standard Time. This string can be empty.AfxTimeZoneIdReturns the time zone identifier.AfxTimeZoneIsDaylightSavingTimeIndicates whether the system is operating in the range covered by the DaylightDate member of the TIME_ZONE_INFORMATION structure.AfxTimeZoneIsStandardSavingTimeIndicates whether the system is operating in the range covered by the StandardDate member of the TIME_ZONE_INFORMATION structure.AfxTimeZoneStandardDay**StandardDayOfWeek** of the **StandardMonth** when the transition from daylight saving time to standard time occurs on an operating system.AfxTimeZoneStandardDayOfWeekDay of the week when the transition from daylight saving time to standard time occurs on an operating system.AfxTimeZoneStandardHourHour of the day when the transition from daylight saving time to standard time occurs on an operating system.AfxTimeZoneStandardMinuteMinute of the **StandardHour** when the transition from standard time to daylight saving time occurs on an operating system.AfxTimeZoneStandardMonthMonth when the transition from daylight saving time to standard time occurs on an operating system.AfxTimeZoneStandardNameA description for standard time. For example, "EST" could indicate Eastern Standard Time. This string can be empty.AfxUnixDateStrRetuns the current Unix date based on the specified mask, e.g. "dd-MM-yyyy".AfxUnixTimeStrRetuns the current Unix time based on the specified mask, e.g. "hh':'mm':'ss"."AfxUnixTimeToFileTimeComverts Unix time to FileTime.AfxUnixTimeToSystemTimeComverts Unix time to SystemTime.AfxUtcDateStrReturns the current local date based on the specified mask, e.g. "dd-MM-yyyy".AfxUtcTimeStrReturns the current UTC time based on the specified mask, e.g. "hh':'mm':'ss".AfxVariantDateTimeToStrConverts a DATE_ type to a string.AfxVariantDateToStrConverts a DATE_ type to a string containing only the date.AfxVariantTimeToStrConverts a DATE_ type to a string containing only the time.AfxVariantTimeToSystemTimeConverts a DATE_ (double) to a SYSTEMTIME.AfxWeekNumberReturns the week number for a given date. The year must be a 4 digit year.AfxWeekOneReturns the first day of the first week of a year. The year must be a 4 digit year.AfxWeeksInMonthReturns the number of weeks in the specified month. Will be 4 or 5.AfxWeeksInYearReturns the number of weeks in the year, where weeks are taken to start on Monday. Will be 52 or 53.