APIs related to the Programming by Stealth podcast/blog series are grouped under this namespace.
Classes
Members
(private, inner, constant) tzLookup :Object.<string, boolean>
A lookup table for validating TZ strings. All valid strings are keys in
this table with value true
.
Type:
- Object.<string, boolean>
Methods
(private, inner) isjQuery($s) → {boolean}
A helper function for testing if a given value is a jQuery.
Parameters:
Name | Type | Description |
---|---|---|
$s |
* | the value to test. |
Returns:
true
if the value being tested is a valid jQuery,false
otherwise.
- Type
- boolean
(private, inner) isSingleSpan($s) → {boolean}
A helper function for testing if a given value is a jQuerySingleSpan
Parameters:
Name | Type | Description |
---|---|---|
$s |
* | the value to test. |
Returns:
true
if the value being tested is a valid jQuerySingleSpan,false
otherwise.
- Type
- boolean
(private, inner) isValidTimeZone(tz) → {boolean}
A helper function for testing if a given value is valid TimeZoneString.
Parameters:
Name | Type | Description |
---|---|---|
tz |
* | the value to test. |
Returns:
true
if the value being tested is a valid TimeZoneString,false
otherwise.
- Type
- boolean
(private, inner) renderClock(clock)
Render the current time into a given clock.
Parameters:
Name | Type | Description |
---|---|---|
clock |
pbs.WorldClock | a reference to the clock to render the time into. |