Are there in jQuery some methods for handling period of time data type?
<p>I'm new in jQuery and all of my search requests bring me to methods for handling Date/Time data types. But I need to handle some period of time, given in number of minutes. I want to convert, for example, <code>1708</code> minutes to <code>"1 day and 4 hours"</code> expression, ignoring minutes. There is <code>TimeSpan</code> data type in C#, for example, and I can do following:</p>

<pre><code>public string ConvertMinutes()
        {
            //Number of minutes I have and want to convert
            int n = 1708;
            TimeSpan t = new TimeSpan(0, n, 0);

            string dayshelper = t.Days == 1 ? "day" : "days";
            string hoursHelper = t.Hours == 1 ? "hour" : "hours";

            //The result I want to get
            //For example "4 days and 2 hours"
            string result = string.Empty;
            result += t.Days == 0 ? string.Empty : string.Format("{0} {1}", t.Days, dayshelper);
            result += t.Hours == 0 ? "." : string.Format(" and {0} {1}.", t.Hours, hoursHelper);
            return result;
        }
</code></pre>

<p>Is there something similar in jQuery? Or do I have to get number of days and hours from number of minutes by myself?</p>
