Skip to main content

Download Date & Time

Downloads DataFlex Date & Time
Back to overview

Date & Time

Description

This download contains a library and a demo application. The library can be used when working with dates and times. The library contains two classes

  • cDateTimeHandler
  • cMathHandler

Note

The Conversions Library is needed to be able to install and use this library

Features

cDateHandler class

This class contains the following functions:

  • CompareFileTimes - Compares two time values (earlier, equal and later)
  • TickCount / TickCount64 - Retrieves the number of milliseconds that have elapsed since the system was started
  • SetLocalTime - Sets the current local time and date
  • SystemTimes - Retrieves system timing information
  • QueryPerformanceCounter - Retrieves the current value of the performance counter
  • QueryPerformancePercentage - Retrieves the frequency of the performance counter
  • QueryUnbiasedInterruptTime - Gets the current unbiased interrupt-time count
  • SystemTime - Retrieves the current system date and time in UTC format
  • SetSystemTime - Changes the system time
  • SystemTimeAdjustment - Determines whether the system is applying periodic time adjustments to its time-of-day clock
  • FormatSystemTimeToTime - Formats a tSystemTime value to a DataFlex Time value using the regional settings
  • TimeZoneInformation - Retrieves the current time zone settings
  • TimeZoneInformationForYear - Retrieves the current time zone settings for a specific year
  • SystemTimeToFileTime - Helper function to convert a time value
  • SystemTimeToTzSpecificLocalTime - Converts a tSystemTime value via TimeZoneInformation to a TimeZone Specific Local Time
  • FileTimeToLocalFileTime - Converts a UTC file time to a local file time
  • FormatSystemTimeToDate - Formats a tSystemTime value to a DataFlex Date value using the regional settings
  • FileTimeToDateTime - Converts a tWinFileTime value to a DataFlex DateTime value
  • SystemTimeAsFileTime - Retrieves the current system Date and Time in UTC format
  • DateTimeToFileTime - Converts a DateTime value into a tWinFileTime value
  • DateTimeToSystemTime - Converts a DateTime value to a tSystemTime Value
  • TransitionDateTime - Converts a transition time (from DST to STD or vice-versa) to a formatted date and time
  • FirstDayOfWeek - Ask the Windows API what the first day of the week is for the current locale
  • FirstWeekOfYear - Ask the Windows API what the first week of a year is for the current locale
  • MondayOfWeekYear - Returns the date of the monday in a given week in a given year
  • StartDateFirstWeekOfYear - Returns the date of the first day of the first week in a given year
  • TransitionDateTimeForYear - Converts - like the TransitionDateTime - a transition time (from DST to STD or vice-versa) to a formatted date and time
  • SystemTimeToDateTime - Formats a tSystemTime value to a DataFlex DateTime value
  • ISO8601WeekNumber - Returns the weeknumber of a given date according to ISO 8601
  • UnixTimeToUTCDateTime - Calculates the UTC DateTime from a UNIX time
  • UnixTimeToLocalDateTime - Calculates the DateTime from a UNIX time
  • DateTimeToUnixTime - Returns the UNIX time from a given datetime value
  • CurrentUTCDateTime - Gets the UTC date & time by converting the local date & time to a UNIX time which is always a UTC time
cMathHandler class

This class contains the following helper functions

  • Ceiling - Returns the least integer less than or equal to the passed value
  • Floor - Returns the greatest integer less than or equal to the passed value
Publisher: Data Access Worldwide Version: 20.1 Publication: 14/09/2022 File size: 4.6 MB

Support

For support go to:

Readme

Prior versions

20.0

Beta

Pre-releases

Quotes

FAQ