{"id":390585,"date":"2026-10-23T18:12:22","date_gmt":"2026-10-23T18:12:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ci-time-duration-calculator\/"},"modified":"2026-10-23T18:12:10","modified_gmt":"2026-10-23T18:12:10","slug":"ci-time-duration-calculator","status":"publish","type":"plugin","link":"https:\/\/et.wordpress.org\/plugins\/ci-time-duration-calculator\/","author":20976408,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"7.1.3","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"CI Time Duration Calculator","header_author":"www.calculator.io \/ Time Duration Calculator","header_description":"Calculate the exact time between two dates or events with our Time Duration Calculator.","assets_banners_color":"","last_updated":"2026-10-23 18:12:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.calculator.io\/time-duration-calculator\/","header_author_uri":"https:\/\/www.calculator.io\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":71,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"calculatorio","date":"2026-10-23 18:12:10","revision":3762182}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3762181,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3762181,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3762182,"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-time-duration-calculator\"}},{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"}]}"}},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3762181,"resolution":"1","location":"assets","locale":"","width":1745,"height":368},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3762181,"resolution":"2","location":"assets","locale":"","width":3231,"height":137}},"screenshots":{"1":"The Time Duration Calculator input form: Start Time, End Time, Start Date, End Date.","2":"The Time Duration Calculator results: Time Duration, TIME."}},"plugin_section":[],"plugin_tags":[288141,288140,214585,288139,288142],"plugin_category":[],"plugin_contributors":[222827],"plugin_business_model":[],"class_list":["post-390585","plugin","type-plugin","status-publish","hentry","plugin_tags-calculate-time-between-dates","plugin_tags-elapsed-time-calculator","plugin_tags-time-difference-calculator","plugin_tags-time-duration-calculator","plugin_tags-work-hours-calculator","plugin_contributors-calculatorio","plugin_committers-calculatorio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ci-time-duration-calculator\/assets\/icon-128x128.png?rev=3762181","icon_2x":"https:\/\/ps.w.org\/ci-time-duration-calculator\/assets\/icon-256x256.png?rev=3762181","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/ci-time-duration-calculator\/assets\/screenshot-1.png?rev=3762181","caption":"The Time Duration Calculator input form: Start Time, End Time, Start Date, End Date."},{"src":"https:\/\/ps.w.org\/ci-time-duration-calculator\/assets\/screenshot-2.png?rev=3762181","caption":"The Time Duration Calculator results: Time Duration, TIME."}],"raw_content":"<!--section=description-->\n<p>Calculate the exact time between two dates or events with our Time Duration Calculator. Easily track work hours, project lengths, and elapsed time instantly.<\/p>\n\n<p>Add the calculator to any page, post or widget area with the shortcode <code>[ci_time_duration_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> Time Duration, TIME.<\/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 colour 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\/time-duration-calculator\/\">https:\/\/www.calculator.io\/time-duration-calculator\/<\/a><\/p>\n\n<h3>Usage<\/h3>\n\n<p>Add the Time Duration Calculator shortcode to your page, post or sidebar:<\/p>\n\n<pre><code>[ci_time_duration_calculator]\n<\/code><\/pre>\n\n<p>Or add the following code to your template where you would like the Time Duration Calculator to appear:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode( '[ci_time_duration_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_time_duration_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_time_duration_calculator theme=\"auto\"]<\/code><\/li>\n<li><code>accent<\/code> - an accent colour for buttons and highlights, as a hex value. Example: <code>[ci_time_duration_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 centred when it is narrower than its column. Example: <code>[ci_time_duration_calculator max_width=\"720px\"]<\/code><\/li>\n<\/ul>\n\n<p>Attributes can be combined: <code>[ci_time_duration_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\/time-duration-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-time-duration-calculator\/ folder to the \/wp-content\/plugins\/ directory, or install the plugin from the Plugins screen.<\/li>\n<li>Activate the Time Duration Calculator plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Add the <code>[ci_time_duration_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_time_duration_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_time_duration_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 colour 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%20the%20time%20duration%20between%20two%20times%3F\"><h3>How do I calculate the time duration between two times?<\/h3><\/dt>\n<dd><p>Enter your start and end times into the single-day calculator, then click \"Calculate\" to see the exact duration. The \"Now\" buttons fill in the current time automatically, and the result appears instantly in hours, minutes, and seconds.<\/p><\/dd>\n<dt id=\"how%20do%20i%20calculate%20the%20time%20between%20two%20dates%3F\"><h3>How do I calculate the time between two dates?<\/h3><\/dt>\n<dd><p>Use the time between two dates calculator: enter the start and end month, day, and year, using the calendar popup or \"Now\" button if needed. You can also add exact start and end times for down-to-the-minute accuracy, then click \"Calculate\" to get the elapsed time.<\/p><\/dd>\n<dt id=\"what%20result%20formats%20does%20the%20time%20duration%20calculator%20show%3F\"><h3>What result formats does the time duration calculator show?<\/h3><\/dt>\n<dd><p>The single-day calculator displays the result as hours, minutes, seconds, decimal hours, and decimal minutes. The two-dates calculator adds days and decimal days, showing the elapsed time in days, hours, minutes, seconds, decimal days, decimal hours, and decimal minutes.<\/p><\/dd>\n<dt id=\"how%20do%20you%20manually%20calculate%20elapsed%20time%20on%20a%2012-hour%20clock%3F\"><h3>How do you manually calculate elapsed time on a 12-hour clock?<\/h3><\/dt>\n<dd><p>You first convert both times to 24-hour (military) format before doing the math, so 4:28 PM becomes 16:28 while 7:39 AM stays the same. This calculator performs these multi-step conversions instantly, removing the mental gymnastics of AM\/PM math.<\/p><\/dd>\n<dt id=\"does%20the%20calculator%20account%20for%20different%20month%20lengths%20and%20leap%20years%3F\"><h3>Does the calculator account for different month lengths and leap years?<\/h3><\/dt>\n<dd><p>Yes. Months vary in length and February shifts between 28 and 29 days depending on the leap year cycle, so the tool determines the exact duration automatically. You only enter the starting and ending dates without memorizing which years are leap years.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\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 Time Duration Calculator<\/li>\n<\/ul>","raw_excerpt":"Calculate the exact time between two dates or events with our Time Duration Calculator.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/390585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=390585"}],"author":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/calculatorio"}],"wp:attachment":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=390585"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=390585"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=390585"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=390585"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=390585"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=390585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}