Kajona\System\System\Date

The date class is used to handle all kind of date and time related operations.

As soon as the most installations will run on PHP >= 5.3.0, this class will be
wrapper to phps' DateTime class.
Up till then, the class provides a few ways to handle date and convert them to
a long value not being limited by the 32 bit time() boundaries (> 1970 && < 2038).
Use this class only in cases the other way won't work, so e.g. for birthdays.

Synopsis

class Date {
  • // constants
  • const INT_DAY_SUNDAY = 0;
  • const INT_DAY_MONDAY = 1;
  • const INT_DAY_TUESDAY = 2;
  • const INT_DAY_WEDNESDAY = 3;
  • const INT_DAY_THURSDAY = 4;
  • const INT_DAY_FRIDAY = 5;
  • const INT_DAY_SATURDAY = 6;
}

Constants

Name Value
INT_DAY_SUNDAY 0
INT_DAY_MONDAY 1
INT_DAY_TUESDAY 2
INT_DAY_WEDNESDAY 3
INT_DAY_THURSDAY 4
INT_DAY_FRIDAY 5
INT_DAY_SATURDAY 6

Members

private

  • $longTimestamp
  • $strDateTimeFormat
  • $strParseFormat
  • $strStringFormat

Methods

private

public