DateTimeSettings
in package
Table of Contents
- $dateFormats : mixed
- $defaultDateFormat : mixed
- getCheckInTime() : string|array<string|int, mixed>
- getCheckInTimeWPFormatted() : string
- Retrieve check-in time in WordPress time format
- getCheckOutTime() : string
- getCheckOutTimeWPFormatted() : string
- Retrieve check-out time in WordPress time format
- getDateFormat() : string
- Retrieve plugin's frontend date format. Uses for datepickers.
- getDateFormatJS() : string
- Retrieve Date Format in js-style
- getDateFormatsList() : array<string|int, mixed>
- getDateFormatWP() : string
- Retrieve WP date format
- getDateTimeFormatWP() : string
- Retrieve WP date time format
- getDateTransferFormat() : string
- getDateTransferFormatJS() : string
- getDefaultDateFormat() : string
- getFirstDay() : int
- Retrieve first day of the week.
Properties
$dateFormats
private
mixed
$dateFormats
= array('Y-m-d' => 'yyyy-mm-dd', 'd/m/Y' => 'dd/mm/yyyy', 'm/d/Y' => 'mm/dd/yyyy', 'd.m.Y' => 'dd.mm.yyyy', 'F j, Y' => 'MM d, yyyy')
$defaultDateFormat
private
mixed
$defaultDateFormat
= 'd/m/Y'
Methods
getCheckInTime()
public
getCheckInTime([mixed $asArray = false ]) : string|array<string|int, mixed>
Parameters
- $asArray : mixed = false
Return values
string|array<string|int, mixed> —time in format "H:i:s" or array
getCheckInTimeWPFormatted()
Retrieve check-in time in WordPress time format
public
getCheckInTimeWPFormatted() : string
Return values
string —getCheckOutTime()
public
getCheckOutTime([mixed $asArray = false ]) : string
Parameters
- $asArray : mixed = false
Return values
string —time in format "H:i:s"
getCheckOutTimeWPFormatted()
Retrieve check-out time in WordPress time format
public
getCheckOutTimeWPFormatted() : string
Return values
string —getDateFormat()
Retrieve plugin's frontend date format. Uses for datepickers.
public
getDateFormat() : string
Return values
string —getDateFormatJS()
Retrieve Date Format in js-style
public
getDateFormatJS() : string
Return values
string —getDateFormatsList()
public
getDateFormatsList() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDateFormatWP()
Retrieve WP date format
public
getDateFormatWP() : string
Return values
string —getDateTimeFormatWP()
Retrieve WP date time format
public
getDateTimeFormatWP([string $glue = ' ' ]) : string
Parameters
- $glue : string = ' '
-
Glue string for concatenate date and time format
Return values
string —getDateTransferFormat()
public
getDateTransferFormat() : string
Return values
string —getDateTransferFormatJS()
public
getDateTransferFormatJS() : string
Return values
string —getDefaultDateFormat()
public
getDefaultDateFormat() : string
Return values
string —getFirstDay()
Retrieve first day of the week.
public
getFirstDay() : int