Name

gettoday — get todays date and various relations thereof

Synopsis

use Wacs;
scalar gettoday(...); 
 

Parameters

parameterdescription
formatwhich format to return date in (DD-MON-YYYYY or YYYY-MM-DD) - default is native format for the current database
epochthe actual date to convert in Unix seconds since 1970 format.
offsetnumber of days different from today - assumed to be historial if postive, future if negative - thus yesterday will be 1, a week ago will be 7, tomorrow will be -1.

Summary

The gettoday function returns either todays date or various deviations thereform - yesterday, a week ago, two weeks ago, etc.

Availability

gettoday is available in both perl and php.