SDU
Personal tools

Now

From SDU

Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

Return current date and time in datetime format. It can be converted to Unix timestamp using cast to int.

Usage

date now()

Results

Current date and time in datetime format.

Examples

chg.modified_date = now();
alg.time_spent = now() - time_stamp;
 
if ((int)now() > (int)need_by-600) {
set_return_data(TRUE);
} else {
set_return_data(FALSE);
}
This page was last modified 13:11, 21 August 2009.  This page has been accessed 864 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers