date_valid_datetime

Returns whether a given datetime is valid.

Syntax:

GML Code Example

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


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


Returns: Boolean


Description

With this function you can check a datetime value to see if it is valid (returns true) or not (returns false).


Example:

GML Code Example

if date_valid_datetime(2011, 9, 15, 10, 3, 30))
    {
    mydatetime = date_create_datetime( 2011, 9, 15, 10, 3, 30 );
    }
 

This will set "mydatetime" to 15th September 2011, 10:03.30, if it is a valid value (which it is).





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