Skip to content

tomskarning/cordova-ios-checktimeconvention

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
www
 
 
 
 
 
 
 
 

Check Time Convention

Checks if Cordova is running in a 12 (AM/PM) or 24 hour environment in iOS.

How To Use

Install the plugin to your project.

$ cordova plugin add https://github.com/tomskarning/cordova-ios-checktimeconvention

Call the plugin from your JavaScript.

	var success = function(is24h) {
		if (is24h === true) {
			alert("24 hours.");
			// Do what you want.
		} else if (is24h === false) {
			alert("12 hours.");
			// Do what you want.
		}
	}
    	
	var failure = function() {
		alert("Error calling CheckTimeConvention plugin!");
	}
	
	CheckTimeConvention.timeConvention(success, failure);

About

Checks if Cordova is running in a 12 or 24 hour time convention.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published