2.1.8 Date Time

Functions

Name Brief Example
_tzset Uses the current setting of the environment variable TZ to update time settings. Examples
asctime Converts a tm time structure to a character string. Examples
CompareFileTime compares two 64-bit file times Examples
convert_time_to_local Converts a time value and corrects for the local time zone.. Examples
convert_time_to_tm Converts a time value to a structure. Examples
date_to_str_custom Convert a Julian date value to a string formatted according to that represents date/time Examples
difftime The difftime function computes the difference between the two supplied time values timer0 and timer1. Examples
DosDateTimeToFileTime The DosDateTimeToFileTime function converts MS-DOS date and time values to a 64-bit file time. Examples
file_time_compare compare two file time Examples
FileTimeToDosDateTime converts a 64-bit file time to MS-DOS date and time values Examples
FileTimeToLocalFileTime Convert a file time to a local file time. Examples
FileTimeToSystemTime Converts a 64-bit file time (in form of a FILETIME structure) to system time format. Examples
get_date_period The function to get the date time period of one year, or one quarter, and so on. Examples
get_date_str convert a Julian date value into a string Examples
get_file_last_write_time_as_julian Get file last write time as Julian date value Examples
get_file_time Get file last write time and create time as Julian date value or as string. Examples
get_month_name get the string representing the month given a number from 1 to 12 Examples
get_time_setting Get time information Examples
get_weekday_name get the string representing the weekday given a number from 0 to 6 Examples
GetFileTime This function retrieves the file creation time, last access time, last write time. Examples
GetSystemTime This function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC). Examples
gmtime The gmtime function breaks down the timer value and stores it in a statically allocated structure of type tm, defined in TIME.H. The value of timer is usually obtained from a call to the time function. Examples
is_str_date Checks if a string is a date in the form "yyyyMMdd" Examples
JulianDateToSystemTime convert a double in Julian date format to a system time struct Examples
LocalFileTimeToFileTime The LocalFileTimeToFileTime function converts a local file time to a file time based on the Coordinated Universal

Time (UTC).

Examples
localtime Convert a time stored as a time_t value and stores the result in a structure of type tm. Examples
mktime Convert the supplied time structure to a time_t value. Examples
ocu_guess_date_time scan the strings to see if they are consistently date-time text Examples
okutil_date_str_convert Convert to or convert from date string. Examples
okutil_datetime_convert Convert Unix timestamp to or from Julian date. Examples
okutil_get_file_last_write_time_as_julian This function is to get specified file's last wirtten time. Examples
okutil_time_add_day Add day(s) to time data when hours wrap after 24. Examples
SetFileTime This function sets the date and time that a file was created, last accessed, or last modified. Examples
str_to_date Convert a text string that represents date/time into a Julian date value, using system date time format Examples
str_to_date_custom Convert a text string that represents date/time into a Julian date value Examples
str_to_time Convert a time formated string to a Julian value Examples
systemtime_to_date_str Convert a SYSTEMTIME structure to a formatted string. Examples
systemtime_to_tm convert system time struct to tm struct. Examples
SystemTimeToFileTime Converts a system time to 64-bit file time Examples
SystemTimeToJulianDate Convert a SYSTEMTIME structure to a Julian date value. Examples
time Get the number of seconds elapsed since midnight (00:00:00), January 1, 1970. Examples
tm_to_systemtime Convert time from a TM structure to a SYSTEMTIME structure. Examples