Location: PHPKode > scripts > Extended MKTime > extended-mktime/Xmktime_exemple.php
//load the class
$t= new make_time();

if submited the form, and is set the stamp. $t->stamp contains the generated date's timestamp.

if($t->stamp!==null) { echo $t->stamp; }

configure the form - $t->y_delay[0] is the number of years before curent year and $t->y_delay[1] is the number of years after curent.

//if you want a time corection:

//load the main script

display_form will display the form. the $time atribute can be a timestamp. If it is empty, than wil take the curent time.

echo $t->display_form($time);

Return current item: Extended MKTime