GetDateTimeElements

int GetDateTimeElements (double dateTime, 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
dateTime double-precision The date/time value from which to get elements such as hour, year, and so on.

Output
Name Type Description
hour integer The hour in military time (0–23).

minute integer The minute (0–59).

second double-precision The second [0,60).

month integer The month (1–12).

day int * The day (1–31). The range of valid values depends on the month and year.

year integer The year (1900–2035).

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success