{"id":404312,"date":"2026-11-29T18:29:22","date_gmt":"2026-11-29T18:29:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ci-hours-and-minutes-calculator\/"},"modified":"2026-11-29T18:29:02","modified_gmt":"2026-11-29T18:29:02","slug":"ci-hours-and-minutes-calculator","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ci-hours-and-minutes-calculator\/","author":20976408,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"7.2","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"CI Hours and Minutes Calculator","header_author":"www.calculator.io \/ Hours and Minutes Calculator","header_description":"Easily add, subtract, and calculate time with our free Hours and Minutes Calculator.","last_updated":"2026-11-29 18:29:02","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.calculator.io\/hours-and-minutes-calculator\/","header_author_uri":"https:\/\/www.calculator.io\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":40,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.1":{"tag":"1.1.1","author":"calculatorio","date":"2026-11-29 18:29:02","revision":3833492}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3833491,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3833491,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3833492,"resolution":false,"location":"assets","locale":"","contents":"{\"landingPage\":\"\\\/wp-admin\\\/plugins.php\",\"preferredVersions\":{\"php\":\"latest\",\"wp\":\"latest\"},\"phpExtensionBundles\":[\"kitchen-sink\"],\"features\":{\"networking\":true},\"steps\":[{\"step\":\"installPlugin\",\"options\":{\"activate\":true},\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"ci-hours-and-minutes-calculator\"}},{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"}]}"}},"all_blocks":[],"tagged_versions":["1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3833491,"resolution":"1","location":"assets","locale":"","width":1745,"height":368},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3833491,"resolution":"2","location":"assets","locale":"","width":3231,"height":261}},"screenshots":{"1":"The Hours and Minutes Calculator input form: Start Time, End Time, Start Date, End Date.","2":"The Hours and Minutes Calculator results: Days, Hours and Minutes, Hours and Minutes, Hours, Minutes."}},"plugin_section":[],"plugin_tags":[296390,296389,296391,40088,288139],"plugin_category":[],"plugin_contributors":[222827],"plugin_business_model":[],"class_list":["post-404312","plugin","type-plugin","status-publish","hentry","plugin_tags-add-hours-and-minutes","plugin_tags-hours-and-minutes-calculator","plugin_tags-subtract-time-calculator","plugin_tags-time-calculator","plugin_tags-time-duration-calculator","plugin_contributors-calculatorio","plugin_committers-calculatorio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ci-hours-and-minutes-calculator\/assets\/icon-128x128.png?rev=3833491","icon_2x":"https:\/\/ps.w.org\/ci-hours-and-minutes-calculator\/assets\/icon-256x256.png?rev=3833491","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ci-hours-and-minutes-calculator\/assets\/screenshot-1.png?rev=3833491","caption":"The Hours and Minutes Calculator input form: Start Time, End Time, Start Date, End Date."},{"src":"https:\/\/ps.w.org\/ci-hours-and-minutes-calculator\/assets\/screenshot-2.png?rev=3833491","caption":"The Hours and Minutes Calculator results: Days, Hours and Minutes, Hours and Minutes, Hours, Minutes."}],"raw_content":"<!--section=description-->\n<p>Easily add, subtract, and calculate time with our free Hours and Minutes Calculator. Get fast and accurate time duration results for timesheets and payroll!<\/p>\n\n<p>Add the calculator to any page, post or widget area with the shortcode <code>[ci_hours_and_minutes_calculator]<\/code>.<\/p>\n\n<p><strong>What you enter:<\/strong> Start Time, End Time, Start Date, End Date.<\/p>\n\n<p><strong>What you get:<\/strong> Days, Hours and Minutes, Hours and Minutes, Hours, Minutes.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Works as soon as it is activated: no account, no API key and no settings page.<\/li>\n<li>Calculates in your visitor's browser. Nothing they type is sent to calculator.io or anywhere else, and the plugin loads no ads, trackers or external scripts.<\/li>\n<li>Responsive: the form and the results sit side by side on wide pages and stack on narrow ones. The frame resizes itself to fit the calculator.<\/li>\n<li>Optional light, dark or automatic (follows the visitor's system setting) theme, a custom accent color and a maximum width, all set in the shortcode.<\/li>\n<li>The calculator runs in an iframe, so your theme's styles cannot break it and it cannot break your theme.<\/li>\n<\/ul>\n\n<p>More about this calculator: <a href=\"https:\/\/www.calculator.io\/hours-and-minutes-calculator\/\">https:\/\/www.calculator.io\/hours-and-minutes-calculator\/<\/a><\/p>\n\n<h3>Usage<\/h3>\n\n<p>Add the Hours and Minutes Calculator shortcode to your page, post or sidebar:<\/p>\n\n<pre><code>[ci_hours_and_minutes_calculator]\n<\/code><\/pre>\n\n<p>Or add the following code to your template where you would like the Hours and Minutes Calculator to appear:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode( '[ci_hours_and_minutes_calculator]' ); ?&gt;\n<\/code><\/pre>\n\n<p>All attributes are optional:<\/p>\n\n<ul>\n<li><code>title<\/code> - <code>1<\/code> (default) shows the calculator heading with its icon, <code>0<\/code> hides it. Example: <code>[ci_hours_and_minutes_calculator title=\"0\"]<\/code><\/li>\n<li><code>theme<\/code> - <code>light<\/code> (default), <code>dark<\/code>, or <code>auto<\/code> to follow the visitor's light\/dark system setting. Example: <code>[ci_hours_and_minutes_calculator theme=\"auto\"]<\/code><\/li>\n<li><code>accent<\/code> - an accent color for buttons and highlights, as a hex value. Example: <code>[ci_hours_and_minutes_calculator accent=\"#2563eb\"]<\/code><\/li>\n<li><code>max_width<\/code> - the widest the calculator may be: a number followed by <code>px<\/code>, <code>%<\/code> or <code>rem<\/code>. The calculator is centered when it is narrower than its column. Example: <code>[ci_hours_and_minutes_calculator max_width=\"720px\"]<\/code><\/li>\n<\/ul>\n\n<p>Attributes can be combined: <code>[ci_hours_and_minutes_calculator title=\"0\" theme=\"auto\" accent=\"#2563eb\" max_width=\"720px\"]<\/code><\/p>\n\n<h3>Source code and libraries<\/h3>\n\n<p>The plugin's own JavaScript and CSS are shipped unminified and human-readable: <code>assets\/js\/*.js<\/code> (except <code>assets\/js\/lib\/<\/code>), <code>assets\/css\/main.css<\/code>, <code>assets\/css\/ci-widget.css<\/code>, <code>assets\/css\/ci-embed.css<\/code> and the PHP file. <code>main.css<\/code> is the compiled, unminified stylesheet of calculator.io. The calculator is also published on the calculator.io website: https:\/\/www.calculator.io\/hours-and-minutes-calculator\/<\/p>\n\n<p>Third-party libraries bundled in <code>assets\/js\/lib\/<\/code>. Where a file is minified, the readable source is available at the upstream address:<\/p>\n\n<ul>\n<li>math.js 3.37.1 (Apache-2.0) - <code>assets\/js\/lib\/math.min.js<\/code>, minified build. Source: https:\/\/github.com\/josdejong\/mathjs<\/li>\n<li>marked 15.0.12 (MIT) - <code>assets\/js\/lib\/marked.min.js<\/code>, minified build. Source: https:\/\/github.com\/markedjs\/marked<\/li>\n<li>Inputmask 5.0.9-beta.70 (MIT) - <code>assets\/js\/lib\/input-mask.min.js<\/code>, minified build. Source: https:\/\/github.com\/RobinHerbots\/Inputmask<\/li>\n<li>lazysizes 5.3.2 (MIT) - <code>assets\/js\/lib\/lazysizes.js<\/code>. Source: https:\/\/github.com\/aFarkas\/lazysizes<\/li>\n<li>Air Datepicker 3.3.0 (MIT) - <code>assets\/js\/lib\/air-datepicker.js<\/code>. Source: https:\/\/github.com\/t1m0n\/air-datepicker<\/li>\n<li>Inter font (SIL Open Font License 1.1) - <code>assets\/fonts\/inter-v20-latin.woff2<\/code>. Source: https:\/\/github.com\/rsms\/inter<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the \/ci-hours-and-minutes-calculator\/ folder to the \/wp-content\/plugins\/ directory, or install the plugin from the Plugins screen.<\/li>\n<li>Activate the Hours and Minutes Calculator plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Add the <code>[ci_hours_and_minutes_calculator]<\/code> shortcode to a page or post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20add%20the%20calculator%20to%20a%20page%3F\"><h3>How do I add the calculator to a page?<\/h3><\/dt>\n<dd><p>Add the shortcode <code>[ci_hours_and_minutes_calculator]<\/code> to a page or post. In the block editor use a Shortcode block. In a theme template use <code>&lt;?php echo do_shortcode( '[ci_hours_and_minutes_calculator]' ); ?&gt;<\/code>.<\/p><\/dd>\n<dt id=\"which%20shortcode%20attributes%20are%20available%3F\"><h3>Which shortcode attributes are available?<\/h3><\/dt>\n<dd><p>title (1 or 0), <code>theme<\/code> (light, dark or auto), <code>accent<\/code> (a hex color such as #2563eb) and <code>max_width<\/code> (for example 720px, 80% or 40rem). See the Usage section for examples. Invalid values are ignored and the default is used instead.<\/p><\/dd>\n<dt id=\"how%20do%20i%20get%20a%20dark%20calculator%3F\"><h3>How do I get a dark calculator?<\/h3><\/dt>\n<dd><p>Use <code>theme=\"dark\"<\/code> for always dark, or <code>theme=\"auto\"<\/code> to follow the visitor's light\/dark system setting. The default, <code>theme=\"light\"<\/code>, keeps the calculator light on any background.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20the%20heading%3F\"><h3>Can I hide the heading?<\/h3><\/dt>\n<dd><p>Yes. Use <code>title=\"0\"<\/code> and the heading with the calculator's icon is not printed, so you can write your own.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20data%20anywhere%3F\"><h3>Does the plugin send data anywhere?<\/h3><\/dt>\n<dd><p>No. The calculation happens in the visitor's browser, nothing they enter leaves the page, and the plugin makes no requests to calculator.io or any other external service. It sets no cookies and loads no ads or trackers.<\/p><\/dd>\n<dt id=\"the%20calculator%20is%20the%20wrong%20height%20or%20has%20a%20scrollbar.\"><h3>The calculator is the wrong height or has a scrollbar.<\/h3><\/dt>\n<dd><p>The frame adjusts its height automatically while the page is open. If your theme or a caching or optimisation plugin removes scripts from the page, the frame keeps a default height; exclude the plugin's <code>ci-embed.js<\/code> file from script optimisation.<\/p><\/dd>\n<dt id=\"how%20do%20i%20calculate%20hours%20and%20minutes%20between%20two%20times%3F\"><h3>How do I calculate hours and minutes between two times?<\/h3><\/dt>\n<dd><p>Enter a start time and an end time, then click \"Calculate,\" and the tool instantly returns how many hours and minutes are between them. For example, a start time of 8:30 a.m. and an end time of 5:30 p.m. gives a duration of exactly nine hours.<\/p><\/dd>\n<dt id=\"how%20do%20i%20count%20hours%20between%20two%20different%20dates%3F\"><h3>How do I count hours between two different dates?<\/h3><\/dt>\n<dd><p>Switch the calculator from \"Between Two Times\" to \"Between Two Dates.\" This mode adds a start date and an end date, so you can set the specific hour, time of day, date, and year for both points. It then returns the exact difference as days, hours, and minutes; hours and minutes; hours; or minutes.<\/p><\/dd>\n<dt id=\"how%20do%20i%20convert%20hours%20and%20minutes%20into%20a%20decimal%20or%20total%20minutes%3F\"><h3>How do I convert hours and minutes into a decimal or total minutes?<\/h3><\/dt>\n<dd><p>The calculator shows a duration in more than one form: for instance, 4 hours and 15 minutes is also expressed as 4.25 hours or a total of 255 minutes. This makes it easy to enter time into timesheets or payroll systems that expect decimals.<\/p><\/dd>\n<dt id=\"what%20is%20the%20difference%20between%20the%2012-hour%20clock%20and%20military%20time%3F\"><h3>What is the difference between the 12-hour clock and military time?<\/h3><\/dt>\n<dd><p>The 12-hour clock splits the day into two 12-hour periods labeled a.m. (\"before noon\") and p.m. (\"after noon\"), while the 24-hour clock (called \"military time\" in the U.S.) runs from 00:00 to 23:59 with no a.m.\/p.m. labels. The 24-hour format is the basis of the ISO 8601 standard and is used in fields like aviation, healthcare, and the military where ambiguity is too risky.<\/p><\/dd>\n<dt id=\"how%20many%20minutes%20and%20seconds%20are%20in%20an%20hour%3F\"><h3>How many minutes and seconds are in an hour?<\/h3><\/dt>\n<dd><p>An hour consists of 60 minutes, and each minute consists of 60 seconds, so an hour equals exactly 3,600 seconds. This 60-based (sexagesimal) division dates back to ancient Babylonian astronomers.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Tested up to WordPress 7.2<\/li>\n<li>Faster result updates and a more responsive on-screen number pad on phones<\/li>\n<li>Calculation and wording fixes carried over from calculator.io<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>New shortcode attributes: <code>title<\/code>, <code>theme<\/code> (light, dark, auto), <code>accent<\/code> and <code>max_width<\/code><\/li>\n<li>Responsive layout: form and results wrap into one column on narrow pages, wide tables scroll inside their own box<\/li>\n<li>The frame now follows the calculator's height when it changes or the window is resized<\/li>\n<li>Fixed the missing heading icon<\/li>\n<li>The plugin's JavaScript and CSS are now shipped unminified<\/li>\n<li>The WordPress-side script and styles load only on pages that use the shortcode<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Removed leftover files of earlier plugin versions<\/li>\n<li>Tested up to WordPress 7.1<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release of Hours and Minutes Calculator<\/li>\n<\/ul>","raw_excerpt":"Easily add, subtract, and calculate time with our free Hours and Minutes Calculator.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/404312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=404312"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/calculatorio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=404312"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=404312"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=404312"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=404312"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=404312"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=404312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}