Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 $today
C
 checkBoolean, Function
 checkDate, Date
 checkType, Function
 checkValue, Function
 checkYear, Date
F
 forEach, MooMonth. Module. Transitions
 from
 fromId, MooMonth. Module. Selectors
G
 getAggregateLengths, Date
 getLengths, Date
I
 isLeapYear, Date
N
 now, Date
T
 toId
Y
 yearDateToMonthDate, Date
 yearLength, Date
 yearStartDay, Date
$today = function()
Same as Date.now
Function.checkBoolean = function(bool)
Shortcut to using Function.checkType with a boolean for type.
Date.checkDate = function(date)
Shortcut to using Function.checkType with a number for type.
Function.checkType = function(value,
type,
kind)
Throws an error if value is not the right type.
Function.checkValue = function(value,
kind)
Throws an error if value is not defined.
Date.checkYear = function(year)
Shortcut to using Function.checkType with a number for type.
forEach: function(effects,
styles)
from: function(el)
Get the day, and week position from a MooMonth.Element day element, or UID.
from: function(prefix,
uid)
Find an element from a MooMonth.Element.
fromId: function(prefix,
uid)
Same as from but assumes UID is just a number.
Date.getAggregateLengths = function(_isLeapYear)
Same as Date.defaultAggregateLengths but modifies for a leap you if _isLeapYear is true.
Date.getLengths = function(_isLeapYear)
Same as Date.defaultLengths but modifies for a leap you if _isLeapYear is true.
Date.isLeapYear = function(year)
Checks if passed in year is a leap year.
Date.now = function()
Same as new Date()
toId: function(d,
w)
Find the UID of a day based on it’s position.
toId: function(el)
Find the UID of a MooMonth.Element element.
Date.yearDateToMonthDate = function(yearDate,
_isLeapYear)
Convert a year date to a month date.
Date.yearLength = function(_isLeapYear)
Returns the year length, 366 if a leap year, else 365
Date.yearStartDay = function(year)
Get the year”s week offset.