vB_Utility_Date
in package
Uses
vB_Utility_Trait_NoSerialize
Table of Contents
Methods
- __construct() : mixed
- Constructor
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- 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
- gmstrftime() : mixed
- spitDoc() : mixed
- strftime() : mixed
Methods
__construct()
Constructor
public
__construct([mixed $config = null ]) : mixed
Parameters
- $config : mixed = null
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(mixed $serialized) : void
Parameters
- $serialized : mixed
__wakeup()
public
__wakeup() : void
autoFunc()
public
autoFunc(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
- $format : mixed
- $timestamp : mixed = null
checkDisallowed()
public
checkDisallowed(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
- $format : mixed
- $timestamp : mixed = null
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
convertToDate()
Convert a strftime() format string to date() format string.
public
convertToDate(string $format) : mixed
Parameters
- $format : string
Tags
convertToStrftime()
Convert a date() format string to strftime() format string.
public
convertToStrftime(string $format) : mixed
Parameters
- $format : string
Tags
getOsNoSupport()
public
getOsNoSupport() : mixed
gmstrftime()
public
gmstrftime(string $format[, int|null $timestamp = null ]) : mixed
Parameters
- $format : string
- $timestamp : int|null = null
spitDoc()
public
spitDoc([mixed $html = false ]) : mixed
Parameters
- $html : mixed = false
strftime()
public
strftime(string $format[, int|null $timestamp = null ]) : mixed
Parameters
- $format : string
- $timestamp : int|null = null