CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Functions | Variables
date.php.inc File Reference

Date specific methods. More...

Functions

 date_displayLongDayDateHour ($date=TODAY)
 
 date_displayLongDateHour ($date=TODAY)
 
 date_displayLongDayDate ($date=TODAY)
 
 date_displayLongDate ($date=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_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_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_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()
 

Detailed Description

Date specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.1
Date
Creation: Oct 2005
Modification: Apr 2018
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Function Documentation

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_displayDate (   $date = TODAY,
  $language = null 
)

Return date display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayDay (   $date = TODAY)

Display day.

Parameters
date$datecan be a week day
Returns
string
date_displayDayAndHour (   $date = TODAY,
  $language = null 
)

Return date day & hour display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayDayMonthAndHour (   $date = TODAY,
  $language = null 
)

Return date display excepting year.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayHour (   $date = TODAY)

Alias to display time.

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

Display long textual representation of date.

Parameters
date$date
Returns
string
date_displayLongDateHour (   $date = TODAY)

Display long textual representation of date and hour.

Parameters
date$date
Returns
string
date_displayLongDayDate (   $date = TODAY)

Display long textual representation of day and date.

Parameters
date$date
Returns
string
date_displayLongDayDateHour (   $date = TODAY)

Display long textual representation of day, date and hour.

Parameters
date$date
Returns
string
date_displayLongFormat (   $date = TODAY,
  $language = null 
)

Return date display with complete day and month name.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayMonthAndYear (   $date = TODAY,
  $language = null 
)

Return date year & month display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayNumericDate (   $date = TODAY)

Display numeric representation of date.

Parameters
date$date
Returns
string
date_displayNumericDateHour (   $date = TODAY)

Display numeric representation of date and hour.

Parameters
date$date
Returns
string
date_displayQuickDate (   $date = TODAY,
  $language = null 
)

Return abbreviate date display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayQuickFormat (   $date = TODAY,
  $language = null 
)

Return short date display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayShortDate (   $date = TODAY)

Display short textual representation of date.

Parameters
date$date
Returns
string
date_displayShortDateHour (   $date = TODAY)

Display short textual representation of date and hour.

Parameters
date$date
Returns
string
date_displayShortDateInterval (   $date1 = TODAY,
  $date2 = TODAY 
)

Display short textual representation of date interval.

Parameters
date$date1
date$date2
Returns
string
date_displayShortDayDate (   $date = TODAY)

Display short textual representation of day and date.

Parameters
date$date
Returns
string
date_displayShortDayDateHour (   $date = TODAY)

Display short textual representation of day, date and hour.

Parameters
date$date
Returns
string
date_displayShortFormat (   $date = TODAY,
  $language = null 
)

Return short date display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_displayTime (   $date = TODAY)

Display time.

Parameters
date$date
Returns
string
date_displayYear (   $date = TODAY,
  $language = null 
)

Return date year display.

Parameters
date$date
string$language
Returns
string
Deprecated:
date_getLanguage (   $language = null)

Return valid language.

Parameters
string$language
Returns
string
Deprecated:
date_getLastMonthValue ( )

Return first day of last month at 0h0m value.

Returns
date
date_getLastWeekValue ( )

Return first day of last week at 0h0m value.

Returns
date
date_getLastYearValue ( )

Return first day of last month at 0h0m value.

Returns
date
date_getNextMonthValue ( )

Return first day of next month at 0h0m value.

Returns
date
date_getNextWeekValue ( )

Return first day of next week at 0h0m value.

Returns
date
date_getNextYearValue ( )

Return first day of next month at 0h0m value.

Returns
date
date_getOrdinalSuffix (   $date = 0)

Return ordinal suffix for date.

Parameters
int$date
Returns
string
date_getThisMonthValue ( )

Return first day of current month at 0h0m value.

Returns
date
date_getThisWeekValue ( )

Return first day of current week at 0h0m value.

Returns
date
date_getThisYearValue ( )

Return first day of current month at 0h0m value.

Returns
date
date_getTodayValue ( )

Return today at 0h0m value.

Returns
date
date_getTomorrowValue ( )

Return tomorrow at 0h0m value.

Returns
date
date_getYesterdayValue ( )

Return yesterday at 0h0m value.

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

Check if dates are the same day.

Parameters
date$date1
date$date2
Returns
boolean
date_isSameMonth (   $date1 = TODAY,
  $date2 = TODAY 
)

Check if dates are the same month.

Parameters
date$date1
date$date2
Returns
boolean
date_isSameYear (   $date1 = TODAY,
  $date2 = TODAY 
)

Check if dates are the same year.

Parameters
date$date1
date$date2
Returns
boolean
date_isToday (   $date = TODAY)

Check if date is today.

Parameters
date$date
Returns
boolean
date_isTomorrow (   $date = TODAY)

Check if date is tomorrow.

Parameters
date$date
Returns
boolean
date_isYesterday (   $date = TODAY)

Check if provided date is yesterday.

Parameters
date$date
Returns
boolean
date_stringToTimestamp (   $date)

Return string formatted date to timestamp.

Parameters
string$date
Returns
int

Variable Documentation

const TODAY time()