Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/class-wc-datetime.php

WC_DateTime::getOffset()

Method: Get UTC offset if set, or default to the DateTime object’s offset.

Source: includes/class-wc-datetime.php:47

Used by 1 function | Uses 0 functions

WC_DateTime::setTimezone()

Method: Set timezone.

Source: includes/class-wc-datetime.php:57

Used by 0 functions | Uses 0 functions

WC_DateTime::getTimestamp()

Method: Missing in PHP 5.2 so just here so it can be supported consistently.

Source: includes/class-wc-datetime.php:68

Used by 1 function | Uses 0 functions

WC_DateTime::getOffsetTimestamp()

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

Source: includes/class-wc-datetime.php:78

Used by 2 functions | Uses 2 functions

WC_DateTime::date()

Method: Format a date based on the offset timestamp.

Source: includes/class-wc-datetime.php:89

Used by 0 functions | Uses 1 function

WC_DateTime::date_i18n()

Method: Return a localised date based on offset timestamp. Wrapper for date_i18n function.

Source: includes/class-wc-datetime.php:100

Used by 0 functions | Uses 1 function

WC_DateTime

Class: Datetime class.

Source: includes/class-wc-datetime.php:15

Used by 0 functions | Uses 0 functions

WC_DateTime::__toString()

Method: Output an ISO 8601 date string in local (WordPress) timezone.

Source: includes/class-wc-datetime.php:31

Used by 0 functions | Uses 0 functions

WC_DateTime::set_utc_offset()

Method: Set UTC offset – this is a fixed offset instead of a timezone.

Source: includes/class-wc-datetime.php:40

Used by 0 functions | Uses 0 functions
Proudly powered by WordPress