date_second_span

Returns the number of seconds between two datetime values.

Syntax:

GML Code Example

date_second_span(date1, date2);


Argument Description
date1 The first datetime.
date2 The datetime to compare it to.


Returns: Real


Description

With this function you can get the number of seconds between two dates. The return value is always positive and will be a whole number.


Example:

GML Code Example

diff = date_second_span(date_create_datetime(2011, 9, 15, 11, 4, 0 ), date_current_datetime());

This would set "diff" to the number of seconds between 15th September 2011, 11:04 and the current date and time.





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