jDoom Examples

Reset Timers

Default (no options)

Counts down to zero, then stops.

days hours mins secs

Bi-directional (no callback)

Counts down to zero, then counts up.

days hours mins secs

Bi-directional (with callback)

Counts down to zero, runs a callback function, then counts up.

days hours mins secs

Directional (with callback and extra zeroes removed)

Counts down to zero, runs a callback function, then stops. Preceding zeroes are removed.

days hours mins secs

Directional (with time zone offset)

Counts down to midnight two days from today in this browser's current time zone.

days hours mins secs

Counts down to midnight two days from today* in Pacific Standard Time (PST -07:00).

days hours mins secs

Counts down to midnight two days from today* in Greenwich Mean Time (GMT 00:00).

days hours mins secs

* Relative to browser's current date

The source code for jDoom can be found on Github.