Admin Production ni-theme
Current Publication

MakeDateTime

LabWindows/CVI

MakeDateTime

int MakeDateTime (int hour, int minute, double second, int month, int day, int year, double *outputDateTime);

Purpose

Generates a date/time double based on a given time.

The output of this function is the number of seconds since midnight, January 1, 1900. You can use this value as an input to FormatDateTimeString.

Parameters

Input
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).

Output
Name Type Description
outputDateTime double The date/time double based on the specified date/time value.

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