- Benchmark Class
- Cache Class
- Captcha Class
- cURL Class
- Database Class
- Date Class
- Errors Class
- FileSystem Class
- FTP Class
- Images Class
- Language Class
- Logger Class
- Number Class
- PayPal Class
- PHPMailer Class
- Plugins Class
- RestClient Class
- Security Class
- Template Class
- Text Class
- URL Class
- XML Class
- ZIP Class
The following sections explain each method of the class.
public static int now ( string $timezone = TIMEZONE)
Return current UNIX timestamp back under consideration of the given time zone.
The time zone from the UNIX timestamp is to be calculated. By default, the time zone is omitted from the constants.php.
public static int get_timestamp_by_date ( string $date)
Returns the UNIX timestamp of the entered date, taking into account the default time zone that is defined in the constants.php.
The date to be converted in the UNIX timestamp. Allowed are all popular formats.
public static String get_date_by_timestamp ( int $timestamp, string $format = 'Y-m-d')
Converts a UNIX timestamp into a date, taking into account the default time zone that is defined in the constants.php.
The UNIX timestamp to be converted in the date.
The format of the date. By default Y-m-d (year-month-day).
public static String|Int get_easter_day_by_year ( int $year, boolean $inTimestamp = false)
Returns the beginning of Easter of a given year, taking into account the current time zone that is defined in the constants.php.
The year of where the beginning of Easter back to be given.
When the time is to be returned as a UNIX timestamp, you have here
true state, otherwise it returns a date string in the format Y-m-d. Default
public static Array get_nation_holidays_by_year ( int $year, string $nation = self::NATION_GERMANY)
Are all holiday of a particular nation in a given year as associative array. Available following Nations are constants:
The year of the celebrations of a nation are to be returned.
The nation of the celebrations of a particular year shall be returned. Here are 8 nations available. This list is constantly in expansion and will soon include more nation. By default
public static Boolean is_year_leap_year ( int $year)
Controls whether the Transferred year is a leap year. If the year is a leap year, one comes
true otherwise a
The year to be checked whether it is a leap year or not.
public static Integer get_days_in_month ( int $month, int $year = 0, int $particular_calendar = CAL_GREGORIAN)
Returns the number of days in a month back in a given year from a specific calendar. Allows the following calendar constants:
CAL_GREGORIAN- Gregorian Calendar
CAL_JULIAN- Julian calendar
CAL_JEWISH- Jewish Calendar
CAL_FRENCH- Calendar of the French Revolution
The month of the number of possible days to be returned.
The year that is specified taking into account the monthly period. If none is specified or the value 0 is returned, the month length of the current year.
By specifying information are returned from a particular calendar. By default