\ActionScheduler_DateTime

ActionScheduler DateTime class.

This is a custom extension to DateTime that

Summary

Methods
Properties
Constants
getTimestamp()
setUtcOffset()
getOffset()
setTimezone()
getOffsetTimestamp()
No public properties found
No constants found
No protected methods found
$utcOffset
N/A
No private methods found
No private properties found
N/A

Properties

$utcOffset

$utcOffset : int

UTC offset.

Only used when a timezone is not set. When a timezone string is used, this will be set to 0.

Type

normal

Methods

getTimestamp()

getTimestamp() : mixed

Returns

mixed

setUtcOffset()

setUtcOffset(string|int  $offset) : mixed

Set the UTC offset.

This represents a fixed offset instead of a timezone setting.

Parameters

string|int $offset

UTC offset value.

Returns

mixed

getOffset()

getOffset() : mixed

Returns

mixed

setTimezone()

setTimezone(mixed  $timezone) : mixed

Parameters

mixed $timezone

Returns

mixed

getOffsetTimestamp()

getOffsetTimestamp() : int

Get the timestamp with the WordPress timezone offset added or subtracted.

Returns

int