date_create_datetime

Creates and returns a datetime value based on given values.

Syntax:

GML Code Example

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


Argument Description
year The year to set.
month The month to set.
day The day to set.
hour The hour to set.
minute The minute to set.
second The second to set.


Returns: Real


Description

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


Example:

GML Code 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".





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here