vBulletin v6.0.4

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

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
retun

string -- strftime() or date() format string

convertToDate()

Convert a strftime() format string to date() format string.

public convertToDate(string $format) : mixed
Parameters
$format : string
Tags
retun

string -- date() format string

convertToStrftime()

Convert a date() format string to strftime() format string.

public convertToStrftime(string $format) : mixed
Parameters
$format : string
Tags
retun

string -- strftime() format string

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

        
On this page

Search results