<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Calculating Decimal Value

[ad_1]

Replies: 1

Hello;
Where am I doing wrong on this code?

fieldname16 = It refers to the number of days in the previous date calculation.

nekadarzaman1 = Calculates total seconds.

var nekadarzaman = DECIMALTOTIME(nekadarzaman1 ,”s”,”d days, h hours, i minutes, and s seconds”);

I can’t distribute the total seconds to the results I want here.
In other words, how many hours, how many minutes and how many seconds is the result of the seconds.

	var nekadarzaman1 = PREC((fieldname16*24)*60*60, 0, true);
    var nekadarzaman = DECIMALTOTIME(nekadarzaman1 ,"s","d days, h hours, i minutes, and s seconds");
    jQuery('#calculation-nekadarzaman').html(nekadarzaman + ' berabersiniz.');
    jQuery('.nekadarzaman-aciklama').html('Zaman Süresi :');
    jQuery('.nekadarzaman-sonuc').html(nekadarzaman + ' berabersiniz.');

    return nekadarzaman;
  }

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer