Cogs.cookieCogs.cookie( name )
name The key/name of the cookie being searched for.
Cogs.cookie( name, value, options )
name The key/name being updated/created.
value The value to be set for the cookie.
options A key/value to set additional properties of the cookie.
duration The lifespan of the Cookie, in days.
domain The domain the Cookie should be associated to.
path The path the Cookie should be associated to.
secure Set whether the cookie should only be available over secure connections.
Cogs.cookie( name, value, duration )
duration A shortcut to set options with just duration.
Cogs.cookie( name, value, expire )
expire A shortcut to set options as {duration: -1}.
Cogs.queryCogs.query( name, [ source ] )
name The key/name to search for.
source A substitute query-string to be searched. (Default: location.search)
Cogs.phpdate (phputc)date.Cogs.phpdate( format, [ time ] )
Cogs.phputc( format, [ time ] )
format The guide for which the time should be formatted.
time A substitute Date or timestamp to be formatted (Default: Now)
e Timezone identifier.
T Timezone abbreviation.
0001-01-01 00:00:00.000 -- 9999-12-31 23:59:59:999
or -62,167,219,200,000 -- 253,402,300,799,999
Cogs.strftime (strfutc)strftime.Cogs.strftime( format, [ time ] )
Cogs.strfutc( format, [ time ] )
format The guide for which the time should be formatted.
time A substitute Date or timestamp to be formatted (Default: Now)
%E Modifier.
%O Modifier.
%Z The time zone or name or abbreviation.
0001-01-01 00:00:00.000 -- 9999-12-31 23:59:59:999
or -62,167,219,200,000 -- 253,402,300,799,999
Cogs.time (utc)Cogs.time()
Cogs.utc()
Cogs.time( year, month, day, hour, minute, second, milli )
Cogs.utc( year, month, day, hour, minute, second, milli )
year The full year, so 1 is year 1, not 2001. (Default: 0)
month The month, from 1 - 12. (Default: 1)
day The day, from 1 - 31. (Default: 1)
hour The hours, from 0 - 23. (Default: 0)
minute The minutes, from 0 - 59. (Default: 0)
second The seconds, from 0 - 59. (Default: 0)
milli The milliseconds, from 0 - 999. (Default: 0)
Cogs.is_ainstanceof testing.Cogs.is_a( object, compare )
object The object to be compared.
compare The type, constructor, null, or undefined to compare to.
nil Matches null or undefined.
Cogs.isofinstanceof testing with multiple possible comparisons.Cogs.isof( object, compare, [ ... ] )
object The object to be compared.
compare The type or constructor to compare to.
Cogs.typetypeof testing.Cogs.type( object )
object The object to be compared.
undefined
null
array
boolean
date
error
function
number
object
regexp
string
unknown