Class DateTimeExtended
- DateTime implements DateTimeInterface
- DateTimeExtended
License: GNU General Public License v2.0 only **********************************************************************************************
Class: DateTimeExtended
Located at datetimeextended.php
Methods summary
public
|
#
__construct( string $date, string $format, DateTimeZone $timezone = null )
es muss das Datum und das dazugehoerige Format uebergeben werden |
public
boolean
|
|
public
integer
|
|
public static
string|string[]
|
#
getWeekdays( integer $weekday = 0 )
Returns an array with all 7 weekdays with full name in the specific language. |
public static
string
|
#
getDateFormatForDatepicker( string $format = 'Y-m-d' )
The method will convert a date format with the syntax of date() to a syntax that is known by the bootstrap datepicker plugin. e.g.: input: 'd.m.Y' output: 'dd.mm.yyyy' e.g.: input: 'j.n.y' output: 'd.m.yy' |
Methods inherited from DateTime
__set_state()
,
__wakeup()
,
add()
,
createFromFormat()
,
diff()
,
format()
,
getLastErrors()
,
getOffset()
,
getTimestamp()
,
getTimezone()
,
modify()
,
setDate()
,
setISODate()
,
setTime()
,
setTimestamp()
,
setTimezone()
,
sub()
Constants summary
Constants inherited from DateTime
ATOM
,
COOKIE
,
ISO8601
,
RFC1036
,
RFC1123
,
RFC2822
,
RFC3339
,
RFC3339_EXTENDED
,
RFC822
,
RFC850
,
RSS
,
W3C