Skip to content

Ragnar-BY/jQuery-clock-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Turns a given div element into a dynamic clock that updates every second. Time can be system time or from Date() object.

USAGE:

Use defaults:

$("div#clock").jqClock();

Options:

all default options

$("div#clock").jqClock({date: new Date(), locale: "en-Us", mFormat: "numeric", hour12: false, showdate: true});
date			Date object, which you can set. If date is not set, then current time is used.
locale			Locale for date and time for example "en-Us" or "ru-Ru"
mFormat			Format for month name.Possible values: "numeric" (12),"long" (December), "short" (Dec)
hour12			true for 12 hour format (10:00 AM)
showdate		if false, then show only time

Commands:

$("div#clock").jqClock(command);

Where command can be "start", "stop", "destroy"

"stop"		for pausing time
"start"		for unpausing time
"destroy"	for destroying jqClock object

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published