[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> date.js (summary)

(no description)

File Size: 1502 lines (966 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 55 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  charCodeToInt()
  unpackBase60()
  arrayToInt()
  intToUntil()
  mapIndices()
  unpack()
  Zone()
  OffsetAt()
  ZoneScore()
  findChange()
  userOffsets()
  sortZoneScores()
  addToGuesses()
  guessesForUserOffsets()
  rebuildGuess()
  guess()
  normalizeName()
  addZone()
  getZone()
  getNames()
  addLink()
  loadData()
  zoneExists()
  needsOffset()
  logError()
  tz()
  abbrWrap()
  resetZoneWrap()
  resetZoneWrap2()
  setSettings()
  __experimentalGetSettings()
  setupWPTimezone()
  format()
  date()
  gmdate()
  dateI18n()
  isInTheFuture()
  getDate()
  packBase60Fraction()
  packBase60()
  packUntils()
  packAbbrsAndOffsets()
  packPopulation()
  validatePackData()
  pack()
  arraysAreEqual()
  zonesAreEqual()
  findAndCreateLinks()
  createLinks()
  findStartAndEndIndex()
  filterYears()
  filterLinkPack()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

charCodeToInt(charCode)   X-Ref
No description

unpackBase60(string)   X-Ref
No description

arrayToInt(array)   X-Ref
No description

intToUntil(array, length)   X-Ref
No description

mapIndices(source, indices)   X-Ref
No description

unpack(string)   X-Ref
No description

Zone(packedString)   X-Ref
No description

OffsetAt(at)   X-Ref
No description

ZoneScore(zone)   X-Ref
No description

findChange(low, high)   X-Ref
No description

userOffsets()   X-Ref
No description

sortZoneScores(a, b)   X-Ref
No description

addToGuesses(name, offsets)   X-Ref
No description

guessesForUserOffsets(offsets)   X-Ref
No description

rebuildGuess()   X-Ref
No description

guess(ignoreCache)   X-Ref
No description

normalizeName(name)   X-Ref
No description

addZone(packed)   X-Ref
No description

getZone(name, caller)   X-Ref
No description

getNames()   X-Ref
No description

addLink(aliases)   X-Ref
No description

loadData(data)   X-Ref
No description

zoneExists(name)   X-Ref
No description

needsOffset(m)   X-Ref
No description

logError(message)   X-Ref
No description

tz(input)   X-Ref
No description

abbrWrap(old)   X-Ref
No description

resetZoneWrap(old)   X-Ref
No description

resetZoneWrap2(old)   X-Ref
No description

setSettings(dateSettings)   X-Ref
Adds a locale to moment, using the format supplied by `wp_localize_script()`.

param: {Object} dateSettings Settings, including locale data.

__experimentalGetSettings()   X-Ref
Returns the currently defined date settings.

return: {Object} Settings, including locale data.

setupWPTimezone()   X-Ref
No description

format(dateFormat)   X-Ref
Formats a date. Does not alter the date's timezone.

param: {string}                    dateFormat PHP-style formatting string.
param: {(Date|string|moment|null)} dateValue  Date object or string,
return: {string} Formatted date.

date(dateFormat)   X-Ref
Formats a date (like `date()` in PHP), in the site's timezone.

param: {string}                    dateFormat PHP-style formatting string.
param: {(Date|string|moment|null)} dateValue  Date object or string,
return: {string} Formatted date.

gmdate(dateFormat)   X-Ref
Formats a date (like `date()` in PHP), in the UTC timezone.

param: {string}                    dateFormat PHP-style formatting string.
param: {(Date|string|moment|null)} dateValue  Date object or string,
return: {string} Formatted date.

dateI18n(dateFormat)   X-Ref
Formats a date (like `dateI18n()` in PHP).

param: {string}                    dateFormat PHP-style formatting string.
param: {(Date|string|moment|null)} dateValue  Date object or string,
param: {boolean}                   gmt        True for GMT/UTC, false for
return: {string} Formatted date.

isInTheFuture(dateValue)   X-Ref
Check whether a date is considered in the future according to the WordPress settings.

param: {string} dateValue Date String or Date object in the Defined WP Timezone.
return: {boolean} Is in the future.

getDate(dateString)   X-Ref
Create and return a JavaScript Date Object from a date string in the WP timezone.

param: {string?} dateString Date formatted in the WP timezone.
return: {Date} Date

packBase60Fraction(fraction, precision)   X-Ref
No description

packBase60(number, precision)   X-Ref
No description

packUntils(untils)   X-Ref
No description

packAbbrsAndOffsets(source)   X-Ref
No description

packPopulation(number)   X-Ref
No description

validatePackData(source)   X-Ref
No description

pack(source)   X-Ref
No description

arraysAreEqual(a, b)   X-Ref
No description

zonesAreEqual(a, b)   X-Ref
No description

findAndCreateLinks(input, output, links, groupLeaders)   X-Ref
No description

createLinks(source, groupLeaders)   X-Ref
No description

findStartAndEndIndex(untils, start, end)   X-Ref
No description

filterYears(source, start, end)   X-Ref
No description

filterLinkPack(input, start, end, groupLeaders)   X-Ref
No description



Generated: Tue Sep 17 01:00:03 2019 Cross-referenced by PHPXref 0.7.1