date_create_datetime

This function will create a datetime value from the component given as the arguments.

 

Syntax:

date_create_datetime(year, month, day, hour, minute, second);

ArgumentType Description
yearReal The year to set.
monthReal The month to set.
dayReal The day to set.
hourReal The hour to set.
minuteReal The minute to set.
secondReal The second to set.

 

Returns:

Datetime

 

Example:

mydatetime = date_create_datetime(2011, 9, 15, 9, 43, 30);

This would set "mydatetime" to the given date and time and store the returned value in the variable "mydatetime".