GetDateTimeElements
int GetDateTimeElements (double inputDateTime, int *hour, int *minute, double *second, int *month, int *day, int *year);
Purpose
Breaks an aggregate date/time down into its elements, such as hour, year, and so on. The input is the number of seconds since midnight, January 1, 1900. You can call MakeDateTime or GetCurrentDateTime to acquire this number.
Parameters
Input | ||
Name | Type | Description |
inputDateTime | double | The date/time value from which to get elements such as hour, year, and so on. |
Output | ||
Name | Type | Description |
hour | int | The hour in military time (0–23). |
minute | int | The minute (0–59). |
second | double | The second [0,60). |
month | int | The month (1–12). |
day | int | The day (1–31). The range of valid values depends on the month and year. |
year | int | The year (1900–2035). |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later