# MakeDateTime

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

## 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 | 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 | integer | The day (1–31). The range of valid values depends on the month and year.
year | integer | The year (1900–2035).
Output
Name | Type | Description
outputDateTime | double-precision | The date/time double based on the specified date/time value.

## 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