vlibDate

vLIB logo

6.9. mkTimestamp()

Function Description
  mkTimestamp([string year [, string month [, string day]]])

This returns a vlibDate timestamp for the given date values. If any value is omitted, the current value will be used.

The returned timestamp is a vlibDate timestamp. For more information on this, please see the IMPORTANT section.

Example

   $today = $date->mkTimestamp(); // all values omitted, takes current values for everything
   $y2k = $date->mkTimestamp('2000', '01', '01'); // returns '2000-01-01'