CaMykS  1.0-20231201
Functions | Variables
date.php.inc File Reference

Functions

 date_displayLongDayDateHour ($date=TODAY)
 
 date_displayLongDateHour ($date=TODAY)
 
 date_displayLongDayDate ($date=TODAY)
 
 date_displayLongDate ($date=TODAY)
 
 date_displayLongDateInterval ($date1=TODAY, $date2=TODAY)
 
 date_displayShortDayDateHour ($date=TODAY)
 
 date_displayShortDateHour ($date=TODAY)
 
 date_displayShortDayDate ($date=TODAY)
 
 date_displayShortDate ($date=TODAY)
 
 date_displayShortDateInterval ($date1=TODAY, $date2=TODAY)
 
 date_displayNumericDateHour ($date=TODAY)
 
 date_displayNumericDate ($date=TODAY)
 
 date_displayTime ($date=TODAY)
 
 date_displayDay ($date=TODAY)
 
 date_displayMonth ($date=TODAY)
 
 date_displayDuration ($duration, $params=array())
 
 date_display ($date=TODAY)
 
 date_isSameDay ($date1=TODAY, $date2=TODAY)
 
 date_isSameMonth ($date1=TODAY, $date2=TODAY)
 
 date_isSameYear ($date1=TODAY, $date2=TODAY)
 
 date_isToday ($date=TODAY)
 
 date_isTomorrow ($date=TODAY)
 
 date_isYesterday ($date=TODAY)
 
 date_compareTimes ($date1=TODAY, $date2=TODAY)
 
 date_getTodayValue ()
 
 date_getTomorrowValue ()
 
 date_getYesterdayValue ()
 
 date_getThisWeekValue ()
 
 date_getNextWeekValue ()
 
 date_getLastWeekValue ()
 
 date_getThisMonthValue ()
 
 date_getNextMonthValue ()
 
 date_getLastMonthValue ()
 
 date_getThisYearValue ()
 
 date_getNextYearValue ()
 
 date_getLastYearValue ()
 
 date_getOrdinalSuffix ($date=0)
 
 date_stringToTimestamp ($date)
 
 date_getNewYearsDay ($year=null)
 
 date_getEasterDay ($year=null)
 
 date_getAscensionDay ($year=null, $easter=null)
 
 date_getPentecostDay ($year=null, $easter=null)
 
 date_getAssumptionDay ($year=null)
 
 date_getAllSaintsDay ($year=null)
 
 date_getChristmasDay ($year=null)
 
 date_strftime ($format, $date=TODAY)
 
 date_getLanguage ($language=null)
 
 date_displayLongFormat ($date=TODAY, $language=null)
 
 date_displayShortFormat ($date=TODAY, $language=null)
 
 date_displayQuickFormat ($date=TODAY, $language=null)
 
 date_displayYear ($date=TODAY, $language=null)
 
 date_displayMonthAndYear ($date=TODAY, $language=null)
 
 date_displayDate ($date=TODAY, $language=null)
 
 date_displayDayMonthAndHour ($date=TODAY, $language=null)
 
 date_displayDayAndHour ($date=TODAY, $language=null)
 
 date_displayQuickDate ($date=TODAY, $language=null)
 
 date_displayHour ($date=TODAY)
 

Variables

const TODAY time()
 

Function Documentation

◆ date_displayLongDayDateHour()

date_displayLongDayDateHour (   $date = TODAY)

Display long textual representation of day, date and hour.

Parameters
date$date
Returns
string

◆ date_displayLongDateHour()

date_displayLongDateHour (   $date = TODAY)

Display long textual representation of date and hour.

Parameters
date$date
Returns
string

◆ date_displayLongDayDate()

date_displayLongDayDate (   $date = TODAY)

Display long textual representation of day and date.

Parameters
date$date
Returns
string

◆ date_displayLongDate()

date_displayLongDate (   $date = TODAY)

Display long textual representation of date.

Parameters
date$date
Returns
string

◆ date_displayLongDateInterval()

date_displayLongDateInterval (   $date1 = TODAY,
  $date2 = TODAY 
)

Display long textual representation of date interval.

Parameters
date$date1
date$date2
Returns
string

◆ date_displayShortDayDateHour()

date_displayShortDayDateHour (   $date = TODAY)

Display short textual representation of day, date and hour.

Parameters
date$date
Returns
string

◆ date_displayShortDateHour()

date_displayShortDateHour (   $date = TODAY)

Display short textual representation of date and hour.

Parameters
date$date
Returns
string

◆ date_displayShortDayDate()

date_displayShortDayDate (   $date = TODAY)

Display short textual representation of day and date.

Parameters
date$date
Returns
string

◆ date_displayShortDate()

date_displayShortDate (   $date = TODAY)

Display short textual representation of date.

Parameters
date$date
Returns
string

◆ date_displayShortDateInterval()

date_displayShortDateInterval (   $date1 = TODAY,
  $date2 = TODAY 
)

Display short textual representation of date interval.

Parameters
date$date1
date$date2
Returns
string

◆ date_displayNumericDateHour()

date_displayNumericDateHour (   $date = TODAY)

Display numeric representation of date and hour.

Parameters
date$date
Returns
string

◆ date_displayNumericDate()

date_displayNumericDate (   $date = TODAY)

Display numeric representation of date.

Parameters
date$date
Returns
string

◆ date_displayTime()

date_displayTime (   $date = TODAY)

Display time.

Parameters
date$date
Returns
string

◆ date_displayDay()

date_displayDay (   $date = TODAY)

Display day.

Parameters
date$datecan be a week day
Returns
string

◆ date_displayMonth()

date_displayMonth (   $date = TODAY)

Display month.

Parameters
date$datecan be a month
Returns
string

◆ date_displayDuration()

date_displayDuration (   $duration,
  $params = array() 
)

Display duration.

Parameters
int$duration
array$params
Returns
string

◆ date_display()

date_display (   $date = TODAY)

Alias to date_displayLongDayDateHour Display long textual representation of day, date and hour

See also
date_displayLongDayDateHour()
Parameters
date$date
Returns
string

◆ date_isSameDay()

date_isSameDay (   $date1 = TODAY,
  $date2 = TODAY 
)

Check if dates are the same day.

Parameters
date$date1
date$date2
Returns
boolean

◆ date_isSameMonth()

date_isSameMonth (   $date1 = TODAY,
  $date2 = TODAY 
)

Check if dates are the same month.

Parameters
date$date1
date$date2
Returns
boolean

◆ date_isSameYear()

date_isSameYear (   $date1 = TODAY,
  $date2 = TODAY 
)

Check if dates are the same year.

Parameters
date$date1
date$date2
Returns
boolean

◆ date_isToday()

date_isToday (   $date = TODAY)

Check if date is today.

Parameters
date$date
Returns
boolean

◆ date_isTomorrow()

date_isTomorrow (   $date = TODAY)

Check if date is tomorrow.

Parameters
date$date
Returns
boolean

◆ date_isYesterday()

date_isYesterday (   $date = TODAY)

Check if provided date is yesterday.

Parameters
date$date
Returns
boolean

◆ date_compareTimes()

date_compareTimes (   $date1 = TODAY,
  $date2 = TODAY 
)

Compare times.

Parameters
date$date1
date$date2
Returns
integer

◆ date_getTodayValue()

date_getTodayValue ( )

Return today at 0h0m value.

Returns
date

◆ date_getTomorrowValue()

date_getTomorrowValue ( )

Return tomorrow at 0h0m value.

Returns
date

◆ date_getYesterdayValue()

date_getYesterdayValue ( )

Return yesterday at 0h0m value.

Returns
date

◆ date_getThisWeekValue()

date_getThisWeekValue ( )

Return first day of current week at 0h0m value.

Returns
date

◆ date_getNextWeekValue()

date_getNextWeekValue ( )

Return first day of next week at 0h0m value.

Returns
date

◆ date_getLastWeekValue()

date_getLastWeekValue ( )

Return first day of last week at 0h0m value.

Returns
date

◆ date_getThisMonthValue()

date_getThisMonthValue ( )

Return first day of current month at 0h0m value.

Returns
date

◆ date_getNextMonthValue()

date_getNextMonthValue ( )

Return first day of next month at 0h0m value.

Returns
date

◆ date_getLastMonthValue()

date_getLastMonthValue ( )

Return first day of last month at 0h0m value.

Returns
date

◆ date_getThisYearValue()

date_getThisYearValue ( )

Return first day of current month at 0h0m value.

Returns
date

◆ date_getNextYearValue()

date_getNextYearValue ( )

Return first day of next month at 0h0m value.

Returns
date

◆ date_getLastYearValue()

date_getLastYearValue ( )

Return first day of last month at 0h0m value.

Returns
date

◆ date_getOrdinalSuffix()

date_getOrdinalSuffix (   $date = 0)

Return ordinal suffix for date.

Parameters
int$date
Returns
string

◆ date_stringToTimestamp()

date_stringToTimestamp (   $date)

Return string formatted date to timestamp.

Parameters
string$date
Returns
int

◆ date_getNewYearsDay()

date_getNewYearsDay (   $year = null)

Return New Year's day for given year.

Parameters
integer$year
Returns
int

◆ date_getEasterDay()

date_getEasterDay (   $year = null)

Return Easter day for given year.

Parameters
integer$year
Returns
integer

◆ date_getAscensionDay()

date_getAscensionDay (   $year = null,
  $easter = null 
)

Return Ascension day for given year (or Easter day)

Parameters
integer$year
integer$easter
Returns
integer

◆ date_getPentecostDay()

date_getPentecostDay (   $year = null,
  $easter = null 
)

Return Pentecost day for given year (or Easter day)

Parameters
integer$year
integer$easter
Returns
integer

◆ date_getAssumptionDay()

date_getAssumptionDay (   $year = null)

Return Assumption day for given year.

Parameters
integer$year
Returns
integer

◆ date_getAllSaintsDay()

date_getAllSaintsDay (   $year = null)

Return All Saints day for given year.

Parameters
integer$year
Returns
integer

◆ date_getChristmasDay()

date_getChristmasDay (   $year = null)

Return Christmas day for given year.

Parameters
integer$year
Returns
integer

◆ date_strftime()

date_strftime (   $format,
  $date = TODAY 
)

Replacement for strftime php method that is deprecated with PHP 8.1.

Parameters
string$format
integer$date
Returns
string

◆ date_getLanguage()

date_getLanguage (   $language = null)

Return valid language.

Parameters
string$language
Returns
string
Deprecated:

◆ date_displayLongFormat()

date_displayLongFormat (   $date = TODAY,
  $language = null 
)

Return date display with complete day and month name.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayShortFormat()

date_displayShortFormat (   $date = TODAY,
  $language = null 
)

Return short date display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayQuickFormat()

date_displayQuickFormat (   $date = TODAY,
  $language = null 
)

Return short date display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayYear()

date_displayYear (   $date = TODAY,
  $language = null 
)

Return date year display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayMonthAndYear()

date_displayMonthAndYear (   $date = TODAY,
  $language = null 
)

Return date year & month display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayDate()

date_displayDate (   $date = TODAY,
  $language = null 
)

Return date display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayDayMonthAndHour()

date_displayDayMonthAndHour (   $date = TODAY,
  $language = null 
)

Return date display excepting year.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayDayAndHour()

date_displayDayAndHour (   $date = TODAY,
  $language = null 
)

Return date day & hour display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayQuickDate()

date_displayQuickDate (   $date = TODAY,
  $language = null 
)

Return abbreviate date display.

Parameters
date$date
string$language
Returns
string
Deprecated:

◆ date_displayHour()

date_displayHour (   $date = TODAY)

Alias to display time.

See also
date_displayTime()
Parameters
date$date
Returns
string
Deprecated:

Variable Documentation

◆ TODAY

const TODAY time()