vB_Utility_Date
in package
Uses
vB_Utility_Trait_NoSerialize
Table of Contents
- $alias_strftime : mixed
- $convert_date_to_strftime : mixed
- $convert_strftime_to_date : mixed
- $disallowed_date : mixed
- $disallowed_strftime : mixed
- $os_no_support : mixed
- __construct() : mixed
- Constructor
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- autoFunc() : mixed
- checkDisallowed() : mixed
- convertFormat() : mixed
- Convert a format string for use by for $datefunc (date|strftime).
- convertToDate() : mixed
- Convert a strftime() format string to date() format string.
- convertToStrftime() : mixed
- Convert a date() format string to strftime() format string.
- getOsNoSupport() : mixed
- spitDoc() : mixed
- handleIncompatibleFormats() : mixed
- Handle any unsupported strftime() formats by adding an alias for those with valid replacements and "blanking out" those without via $this->os_no_support
Properties
$alias_strftime
private
mixed
$alias_strftime
$convert_date_to_strftime
private
mixed
$convert_date_to_strftime
$convert_strftime_to_date
private
mixed
$convert_strftime_to_date
$disallowed_date
private
mixed
$disallowed_date
$disallowed_strftime
private
mixed
$disallowed_strftime
$os_no_support
private
mixed
$os_no_support
= []
Methods
__construct()
Constructor
public
__construct([mixed $config = null ]) : mixed
Parameters
- $config : mixed = null
Return values
mixed —__serialize()
public
__serialize() : mixed
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —autoFunc()
public
autoFunc(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
- $format : mixed
- $timestamp : mixed = null
Return values
mixed —checkDisallowed()
public
checkDisallowed(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
- $format : mixed
- $timestamp : mixed = null
Return values
mixed —convertFormat()
Convert a format string for use by for $datefunc (date|strftime).
public
convertFormat(string $datefunc, string $format[, mixed $force = false ]) : mixed
Parameters
- $datefunc : string
-
Which date function will receive our output, e.g. date|gmdate|strftime|gmstrftime
- $format : string
- $force : mixed = false
Tags
Return values
mixed —convertToDate()
Convert a strftime() format string to date() format string.
public
convertToDate(string $format) : mixed
Parameters
- $format : string
Tags
Return values
mixed —convertToStrftime()
Convert a date() format string to strftime() format string.
public
convertToStrftime(string $format) : mixed
Parameters
- $format : string
Tags
Return values
mixed —getOsNoSupport()
public
getOsNoSupport() : mixed
Return values
mixed —spitDoc()
public
spitDoc([mixed $html = false ]) : mixed
Parameters
- $html : mixed = false
Return values
mixed —handleIncompatibleFormats()
Handle any unsupported strftime() formats by adding an alias for those with valid replacements and "blanking out" those without via $this->os_no_support
private
handleIncompatibleFormats([mixed $config = null ]) : mixed
Parameters
- $config : mixed = null